Mars
Cannot deploy on Cloudflare - global is not defined
Hey guys, I have this error while deploying my Nuxt3 app on Cloudflare Pages
12:33:11.829 ✨ Compiled Worker successfully
12:33:11.996 Found _routes.json in output directory. Uploading.
12:33:12.007 Validating asset output directory
12:33:14.708 Deploying your site to Cloudflare's global network...
12:33:16.971 Parsed 3 valid header rules.
12:33:19.202 Uploading... (935/938)
12:33:19.537 Uploading... (936/938)
12:33:19.573 Uploading... (937/938)
12:33:19.720 Uploading... (938/938)
12:33:19.721 ✨ Success! Uploaded 3 files (935 already uploaded) (0.99 sec)
12:33:19.721
12:33:20.015 ✨ Upload complete! 12:33:22.350 Success: Assets published! 12:33:24.122 Error: Failed to publish your Function. Got error: Uncaught ReferenceError: global is not defined at chunks/nitro/nitro.mjs:1:30871 I tried differents solutions proposed on this discord following this specific issue but I'm still stuck. Any help help you web amazing from you guys please 🙏
12:33:20.015 ✨ Upload complete! 12:33:22.350 Success: Assets published! 12:33:24.122 Error: Failed to publish your Function. Got error: Uncaught ReferenceError: global is not defined at chunks/nitro/nitro.mjs:1:30871 I tried differents solutions proposed on this discord following this specific issue but I'm still stuck. Any help help you web amazing from you guys please 🙏
10 replies