neondatabase / serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions
https://www.npmjs.com/package/@neondatabase/serverless
MIT License
321 stars 13 forks source link

cloudflare:sockets error @ 0.4.8 #20

Closed mgarf closed 1 year ago

mgarf commented 1 year ago

Steps to reproduce

Setup Next.JS with serverless package and Drizzle ORM

Expected result

No Error on npm run dev

Actual result

cloudflare:sockets
Module build failed: UnhandledSchemeError: Reading from "cloudflare:sockets" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "cloudflare:" URIs.

Environment

Logs, links

mgarf commented 1 year ago

Seems related to https://github.com/brianc/node-postgres/issues/2975

jawj commented 1 year ago

Ah: seems like we should hold back the pg version we rely on until we've investigated how Cloudflare sockets support works. I've just published 0.4.9 that does that — does this new version work for you?

jawj commented 1 year ago

@mgarf Could you confirm if 0.4.9 works, or are you still having problems?