Ajay
CDCloudflare Developers
•Created by Ajay on 4/22/2025 in #pages-help
No matching export but builds and runs fine locally
The solution to this was to include:
In my
package.json
. Another problem showed up with canceled promises, and turns out you must initialize your DB connection on every request (but you don't need to do this in Vercel).2 replies
CDCloudflare Developers
•Created by Ajay on 4/22/2025 in #pages-help
Unable to deploy in Pages despite `nodejs_compat` being set (SvelteKit and `pg`)
Update: I found a
nodejs_compat_v2
flag, and I tried that. This should really be in the docs, I found it in some old Github issues but I didn't know it's still a thing. Those errors are now gone, but another one showed up. Will start a new post for that.4 replies
CDCloudflare Developers
•Created by Ajay on 4/22/2025 in #pages-help
Unable to deploy in Pages despite `nodejs_compat` being set (SvelteKit and `pg`)
Full dump
4 replies
CDCloudflare Developers
•Created by Ajay on 4/22/2025 in #pages-help
Unable to deploy in Pages despite `nodejs_compat` being set (SvelteKit and `pg`)
I can't prefix the module name since it's in a library, unless I patch it. It should not be this difficult to deploy, so I'm wondering if I'm doing something completely wrong or if the versions are not compatible, though I could not find any documentation to support that.
4 replies