You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload this project to Cloudflare Pages using the Zero Config option provided by linking the GitHub Repository with Cloudflare Pages. Cloudflare successfully compiles and finds the _worker.js . It uploads the assets and fails on publishing a function
Describe the bug
Cloudflare Pages fails to deploy the application to the cloudflare network due to a reference error. It cannot find __dirname.
Additional context
The same project compiles successfully locally with the node_server preset and the cloudflare_pages preset.
I DO NOT add any Cloudflare Function (at least that I am aware of). I purely compile the nuxt web application and want it to execute :)
Logs
`Error: Failed to publish your Function. Got error: Uncaught ReferenceError: __dirname is not defined at functionsWorker-0.4740030691865005.js:6396:18`
The text was updated successfully, but these errors were encountered:
Environment
nuxt.config.ts
Running Nuxt Version 3.4.2
.mvnrc
16
Reproduction
Upload this project to Cloudflare Pages using the Zero Config option provided by linking the GitHub Repository with Cloudflare Pages. Cloudflare successfully compiles and finds the _worker.js . It uploads the assets and fails on publishing a function
Describe the bug
Cloudflare Pages fails to deploy the application to the cloudflare network due to a reference error. It cannot find __dirname.
Additional context
The same project compiles successfully locally with the
node_server
preset and thecloudflare_pages
preset.I DO NOT add any Cloudflare Function (at least that I am aware of). I purely compile the nuxt web application and want it to execute :)
Logs
The text was updated successfully, but these errors were encountered: