-
Notifications
You must be signed in to change notification settings - Fork 148
Vercel Edge, Cloudflare Workers, ReferenceError: global is not defined #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Running into this, too. Here's a repo to reproduce this: https://github.com/kevcodez/nuxt-on-the-edge Fork and deploy that to Vercel and open the page.
|
Cloudflare workers require node_compat = true in wrangler.toml With this setup it works. |
Same here : #158 |
I've encountered the same problem on cloudflare after migrating from yarn to pnpm (deployment failed ... even with 0 code). adding if i'll still encounter problems down the road, i'm not sure - but for me, i got the "global is not defined" error already on deployment, at the "Deploying to Cloudflare's global network" step. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
Version
@nuxtjs/supabase: 0.3.0
nuxt: 3.0.0
Cloudflare Workers:
ReferenceError: global is not defined
Vercel Edge
ReferenceError: global is not defined
In project only @nuxtjs/supabase package.
Without @nuxtjs/supabase with supabase-js works correct.
The text was updated successfully, but these errors were encountered: