How to solve: Got error: Uncaught ReferenceError: global is not defined
Hello,
my deployment to cloudflare pages for my Nuxt app fails with the following error:
23:22:22.820 ✨ Upload complete!
23:22:25.222 Success: Assets published!
23:22:26.682 Error: Failed to publish your Function. Got error: Uncaught ReferenceError: global is not defined
at chunks/runtime.mjs:1:30918
Building on my local machine works perfect, this are my deps:
"dependencies": {
"@headlessui/vue": "^1.7.19",
"@heroicons/vue": "^2.1.3",
"@tailwindcss/forms": "^0.5.7",
"@nuxtjs/tailwindcss": "^6.11.4"
},
"devDependencies": {
"nuxt": "^3.11.1",
"@nuxt/types": "^2.17.3",
"@nuxtjs/supabase": "^1.2.0"
}
Any idea how to fix this?
1 Reply
I seem to be experiencing the same. Can't seem to find any issues or reasons as to why.
My Deps:
Interesting, see: https://discord.com/channels/473401852243869706/1229167725306449950/1229167725306449950