Closed ManasMadrecha closed 2 days ago
Hmm don't think this is specific to Nuxt but this is a workerd exception on Windows.
See the error message shown when you hit the error:
On Windows, this may be caused by an outdated Microsoft Visual C++ Redistributable library.
Check that you have the latest version installed.
See https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist.
Have you tried this?
The Windows error might prop up on npx wrangler dev
, but why is the first command of npm run dev
itself showing an error that workerd unable to initialise worker bindings or so? ๐ฏ
I've a Nuxt 3 app running on CF Pages nicely. But I wanted to try the new option available on running the framework on workers as well.
@ManasMadrecha to clarify, have you tried updating the Microsoft Visual C++ Redistributable library? What version are you on?
Yes, updated that and now it's working. ๐ฏ Seemed like a pretty easy solution, but don't know why it was an issue in the first place ๐๐ป
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
3.80.0 [Wrangler], 2.9.7 [Nitropack], 3.13.0 [Nuxt]
What version of Node are you using?
20.16.0
What operating system and version are you using?
Windows 11
Describe the Bug
Observed behavior
Error on starting a simple bare-bones app.
Expected behavior
It should start normally.
Steps to reproduce
Just follow the instruction on https://developers.cloudflare.com/workers/frameworks/framework-guides/nuxt
npm create cloudflare@latest my-nuxt-app -- --framework=nuxt --experimental
npm run dev
This fails.
Note that
npm run build
succeeds. But then,npx wrangler dev
fails.Code
Here is the auto-generated
wrangler.toml
Here is the auto-generated
package-json
Please provide a link to a minimal reproduction
https://developers.cloudflare.com/workers/frameworks/framework-guides/nuxt
Please provide any relevant error logs
Error on
npm run dev
Error on
npx wrangler dev
after successfully runningnpm run build