ruthenz.
CDCloudflare Developers
•Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
I didn’t
27 replies
CDCloudflare Developers
•Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
I feel like I'm experiencing the same thing...
Trying to use "pg" (https://www.npmjs.com/package/pg) with RemixJS and getting this errors on build :
- The package "stream" wasn't found on the file system but is built into node.
- Add the "nodejs_compat" compatibility flag to your Pages project and make sure to prefix the module name with "node:" to enable Node.js compatibility.
- ../node_modules/.pnpm/[email protected]/node_modules/pg-cloudflare/dist/index.js:1:29: ERROR: Could not resolve "events"
And I tried searching the web for hours without finding any real answer on how to solve this.
Is this really this big of an issue? how does anyone use postgres without Hyperdrive on Cloudflare? What am I missing?
27 replies