Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashes after opening the browser #9

Open
wizzard0 opened this issue Nov 23, 2024 · 1 comment
Open

crashes after opening the browser #9

wizzard0 opened this issue Nov 23, 2024 · 1 comment

Comments

@wizzard0
Copy link

wizzard0 commented Nov 23, 2024

repro:

firehouse-chat/node_modules/partykit/dist/bin.mjs:96377
    throw err;
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "strategy" argument must be of type object. Received type number (0)
    at new ReadableStream (node:internal/webstreams/readablestream:253:5)
    at safeReadableStreamFrom (firehouse-chat/node_modules/miniflare/dist/src/index.js:7975:10)
    at #handleLoopback (firehouse-chat/node_modules/miniflare/dist/src/index.js:8137:36)
    at Server.emit (node:events:531:35)
    at parserOnIncoming (node:_http_server:1150:12)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v22.9.0

Process finished with exit code 7
@wizzard0
Copy link
Author

tried to update all fireproof deps, now npm run dev crashes immediately:

partykit dev --live
🎈 PartyKit v0.0.111
---------------------
Loading environment variables from ../../../.env
ConfigurationError: Could not find party: node_modules/@fireproof/partykit/src/server.ts
    at getConfig (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:84332:15)
    at file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:92952:11
    at Object.lf [as useState] (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:8493:43)
    at exports2.useState (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:307:24)
    at useDev (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:92951:48)
    at DevImpl (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:92797:43)
    at Re (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:8327:14)
    at bi (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:11107:17)
    at ai (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:10803:17)
    at $h (file:///firehouse-chat/node_modules/partykit/dist/bin.mjs:10797:30)
✘ [ERROR] Could not find party: node_modules/@fireproof/partykit/src/server.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant