CloudFlare Worker (Wrangler) deployment struggling to resolve node modules for Nuxt3 #675
Unanswered
l-monninger
asked this question in
Q&A
Replies: 2 comments 3 replies
-
You need to make sure to build with |
Beta Was this translation helpful? Give feedback.
1 reply
-
Cloudflare workers isn't Node, it's build on top of V8 engine so you can't use some packages which dependent on some native node api like fs, net or http. Looks like you get error when deploy to cloudflare via wrangler, it make sense because wrangler2 smart enough to detect unsupported apis most of times. https://developers.cloudflare.com/workers/learning/how-workers-works |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling to get
Nuxt3
(w/Nitro) working as a CloudFlare Worker (Wrangler) deployment. It have mywrangler.toml
configured as:However, this fails; it appears because
node_modules
is not successfully internalized:Any thoughts on how to resolve? I'm asking in the Nuxt community as well.
Beta Was this translation helpful? Give feedback.
All reactions