Closed Skmt3P closed 1 year ago
I have the same issue with Nuxt 3 โ
I think it appears on w.versions.node.split(".")
I am also running into the same issue here on my local machine. Happens on npx wrangler dev .output/server/index.mjs --site .output/public --local
Logs
โ
๏ธ wrangler 2.20.0
--------------------
Want to try out the next version of local mode using the open-source Workers runtime?
Switch out --local for --experimental-local and let us know what you think at https://discord.gg/cloudflaredev !
โ Starting a local server...
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Debugger listening on ws://127.0.0.1:55698/75a19c6f-94c1-466c-bf32-1beacb629a76
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
[mf:err] /private/var/folders/b2/4c8sqqhj2qq_7821m00qlvfr0000gn/T/tmp-47540-V55HsMhlPBX3/index.js:5394
const Hs = requireFs(), { Readable: zs } = requireStream(), Gs = ue, { promisify: Ks } = Hn, Ys = qs, Js = Ks(Hs.readdir), Xs = Ks(Hs.stat), Qs = Ks(Hs.lstat), Zs = Ks(Hs.realpath), ei = "READDIRP_RECURSIVE_ERROR", ti = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", ei]), ri = "files", ni = "directories", si = "files_directories", ii = "all", oi = [ri, ni, si, ii], [ai, ui] = w.versions.node.split(".").slice(0, 2).map((e2) => Number.parseInt(e2, 10)), ci = "win32" === w.platform && (ai > 10 || 10 === ai && ui >= 5), normalizeFilter = (e2) => {
TypeError: Cannot read properties of undefined (reading 'split')
at .nuxt/dist/server/client.manifest.mjs:3922:12
at /private/var/folders/b2/4c8sqqhj2qq_7821m00qlvfr0000gn/T/tmp-47540-V55HsMhlPBX3/index.js:28435:3
at Script.runInContext (node:vm:141:12)
at VMScriptRunner.runAsScript (/usr/local/lib/node_modules/wrangler/node_modules/@miniflare/runner-vm/src/index.ts:26:12)
at VMScriptRunner.run (/usr/local/lib/node_modules/wrangler/node_modules/@miniflare/runner-vm/src/index.ts:88:12)
at Miniflare.#reload (/usr/local/lib/node_modules/wrangler/node_modules/@miniflare/core/src/index.ts:790:42)
at Miniflare.getPlugins (/usr/local/lib/node_modules/wrangler/node_modules/@miniflare/core/src/index.ts:1033:5)
at createServer (/usr/local/lib/node_modules/wrangler/node_modules/@miniflare/http-server/src/index.ts:362:19)
at startServer (/usr/local/lib/node_modules/wrangler/node_modules/@miniflare/http-server/src/index.ts:469:18)
I have the same problem. Logs:
wrangler dev now uses local mode by default, powered by ๐ฅ Miniflare and ๐ท workerd. To run an edge preview session for your Worker, use wrangler dev --remote โฒ [WARNING] --local is no longer required and will be removed in a future version.
wrangler dev
now uses the local Cloudflare Workers runtime by default. ๐
โ Starting local server... service core:user:hello-world-icy-art-695a: Uncaught TypeError: Cannot read properties of undefined (reading 'split') at core:user:hello-world-icy-art-695a:5706:416 at core:user:hello-world-icy-art-695a:45366:4 at core:user:hello-world-icy-art-695a:45367:3 โ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
wrangler dev now uses local mode by default, powered by ๐ฅ Miniflare and ๐ท workerd. To run an edge preview session for your Worker, use wrangler dev --remote โ Starting local server... service core:user:hello-world-icy-art-695a: Uncaught TypeError: Cannot read properties of undefined (reading 'split') at core:user:hello-world-icy-art-695a:5706:416 at core:user:hello-world-icy-art-695a:45366:4 at core:user:hello-world-icy-art-695a:45367:3 โ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎโ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit โโฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ`
When this problem is solved...
โ
๏ธ wrangler 3.0.1
------------------
wrangler dev now uses local mode by default, powered by ๐ฅ Miniflare and ๐ท workerd.
To run an edge preview session for your Worker, use wrangler dev --remote
โ Starting local server...
service core:user:worker: Uncaught TypeError: Cannot read properties of undefined (reading 'split')
at ivsvnonyb4d.js:4962:32
โ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
I'm facing the same error on wrangler 3.1.0
it's actually being pretty hard to deploy my first nuxt application on cloudflare
Nuxt apps should work in Cloudflare Workers both locally and when deployed. The steps at https://nitro.unjs.io/deploy/providers/cloudflare or https://developers.cloudflare.com/pages/framework-guides/deploy-a-nuxt-site/ should work for either Cloudflare Workers or Cloudflare Pages.
If you're still running into issues, would you be able to open a new issue with a sample repo that shows the problem?
Which Cloudflare product(s) does this pertain to?
Wrangler
What version of
Wrangler
are you using?2.19.0
What operating system are you using?
Linux
Describe the Bug
Details
wrangler publish
, then it raise a error like logs.wrangler publish
on local environment, the same error happens.Error: Script startup exceeded CPU time limit.
error happens.Logs
Information
CI: Github Actions / cloudflare/wrangler-action/2.0.0 Deploy to: Cloudflare workers FW: Nuxt3 (SSR preset: cloudflare) deps: