Skip to content
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

Unexpected Server Error Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'cloudflare:' #822

Open
cloudcreatr opened this issue Mar 9, 2024 · 4 comments

Comments

@cloudcreatr
Copy link

Unexpected Server Error

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'cloudflare:'

i am trying to connect to supabase with cloudflare workers in pages. i am using drizzle but i am getting this error..

@tukiminya
Copy link

I have the same problem to connect Neon database with Remix + Vite + Cloudflare pages.
Please check reference repository.

https://github.com/tukiminya/remix_vite_postgresjs_issue

@l4j3b
Copy link

l4j3b commented Apr 15, 2024

Same issue, it works in prod though, it is only locally that it does not...

@oristian
Copy link

In the same boat here - and losing remix dev hrm by having to run npm run preview and exit and repeat is a DX killer

@anyuruf
Copy link

anyuruf commented May 7, 2024

I was getting similar errors in my Remix, Drizzle and cloudflare app and I think it's some to do with running remix dev instead of wrangler dev when you using cloudflare services like D1 database, Hyperdrive(For postgres) and so on. Check the link https://www.jacobparis.com/content/remix-cloudflare-pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants