Roberto Machorro
Roberto Machorro
CDCloudflare Developers
Created by Roberto Machorro on 3/10/2024 in #workers-help
Unable to run dev on any projects.
Somehow my environment is no longer able to run locally any worker. I even created a fresh "Hello World" worker and they all give the same error (see below). I noticed that I had lots of workerd processes running and killed them all (CPU was buring). Same issue after. Restarted, still same error below. Any suggestions?
/Users/rm/Projects/c/CFWorkers/damp-hat-4c7d/node_modules/wrangler/wrangler-dist/cli.js:29573
throw a;
^

TypeError [ERR_INVALID_ARG_TYPE]: The "strategy" argument must be of type object. Received type number (0)
at new ReadableStream (node:internal/webstreams/readablestream:254:5)
at safeReadableStreamFrom (/Users/rm/Projects/c/CFWorkers/damp-hat-4c7d/node_modules/miniflare/dist/src/index.js:8264:10)
at #handleLoopback (/Users/rm/Projects/c/CFWorkers/damp-hat-4c7d/node_modules/miniflare/dist/src/index.js:8425:36)
at Server.emit (node:events:531:35)
at Server.emit (node:domain:488:12)
at parserOnIncoming (node:_http_server:1137:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v21.7.1
/Users/rm/Projects/c/CFWorkers/damp-hat-4c7d/node_modules/wrangler/wrangler-dist/cli.js:29573
throw a;
^

TypeError [ERR_INVALID_ARG_TYPE]: The "strategy" argument must be of type object. Received type number (0)
at new ReadableStream (node:internal/webstreams/readablestream:254:5)
at safeReadableStreamFrom (/Users/rm/Projects/c/CFWorkers/damp-hat-4c7d/node_modules/miniflare/dist/src/index.js:8264:10)
at #handleLoopback (/Users/rm/Projects/c/CFWorkers/damp-hat-4c7d/node_modules/miniflare/dist/src/index.js:8425:36)
at Server.emit (node:events:531:35)
at Server.emit (node:domain:488:12)
at parserOnIncoming (node:_http_server:1137:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v21.7.1
6 replies