sanser
sanser
Explore posts from servers
CDCloudflare Developers
Created by sanser on 6/7/2024 in #pages-help
some peer dependencies are incorrectly met with sveltekit
Hey all im currently getting some strange issues when building in cloudflare, issues dont seem to happen in vercel and locally they are just warnings and work fine, any ideas on this failing, i have set YARN_VERSION to 3 aswell but still same issue
4 replies
CDCloudflare Developers
Created by sanser on 3/31/2024 in #pages-help
postgres in pages
how can i use postgres using sveltekit with pages and drizzle ORM? im using pg atm but im getting these errors when building;
18:24:51.574 node_modules/pg/lib/stream.js:21:20:
18:24:51.574 21 │ var tls = require('tls')
18:24:51.574 ╵ ~~~~~
18:24:51.574
18:24:51.575 Cannot use "tls" when deploying to Cloudflare.
18:24:51.575
18:24:51.575
18:24:51.575 ✘ [ERROR] Could not resolve "fs"
18:24:51.575
18:24:51.575 node_modules/pgpass/lib/index.js:4:17:
18:24:51.575 4 │ , fs = require('fs')
18:24:51.575 ╵ ~~~~
18:24:51.576
18:24:51.576 Cannot use "fs" when deploying to Cloudflare.
18:24:51.574 node_modules/pg/lib/stream.js:21:20:
18:24:51.574 21 │ var tls = require('tls')
18:24:51.574 ╵ ~~~~~
18:24:51.574
18:24:51.575 Cannot use "tls" when deploying to Cloudflare.
18:24:51.575
18:24:51.575
18:24:51.575 ✘ [ERROR] Could not resolve "fs"
18:24:51.575
18:24:51.575 node_modules/pgpass/lib/index.js:4:17:
18:24:51.575 4 │ , fs = require('fs')
18:24:51.575 ╵ ~~~~
18:24:51.576
18:24:51.576 Cannot use "fs" when deploying to Cloudflare.
1 replies