Jonas
Jonas
CDCloudflare Developers
Created by Jonas on 4/1/2024 in #pages-help
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?
3 replies