-
Notifications
You must be signed in to change notification settings - Fork 460
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
Error with postgres@3.4.0 when building for cloudflare #1967
Labels
Comments
dev-cetus
changed the title
Error with postgres@3.4.3 when building for cloudflare
Error with postgres@3.4.0 when building for cloudflare
Nov 29, 2023
you can solve this by adding an additional piece in the config as follow //https://nitro.unjs.io/config
export default defineNitroConfig({
preset: "cloudflare-pages",
rollupConfig: {
external: ["cloudflare:sockets"],
},
}); |
thanks it works, no more problem with
I did put this configuration in, as @ElioStalteri said:
|
majudhu
added a commit
to majudhu/nuxt-ui-drzzl-neon
that referenced
this issue
Mar 18, 2024
vinayakkulkarni
added a commit
to vinayakkulkarni/vinayakkulkarni.dev
that referenced
this issue
Apr 8, 2024
ref: unjs/nitro#1967 (comment) Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Reproduction
all code is here
on powershell, run..
Describe the bug
When I build the app to deploy it to cloudflare workers, I get an error about "cloudflare:sockets" in the postgres package.
Cannot resolve "cloudflare:sockets" from "[...]\\node_modules\\.pnpm\\postgres@3.4.0\\node_modules\\postgres\\cf\\polyfills.js" and externals are not allowed!
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: