-
Notifications
You must be signed in to change notification settings - Fork 489
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
Cloudflare pages deployment issue #1679
Comments
Hi @AsyncFox, this might be related to the fact that cloudflare doesn't support the |
Hi @Hebilicious , I tried Logs[nitro 22:47:00] ERROR Error: Cannot resolve "pg-native" from "\\node_modules\\.pnpm\\pg@8.11.3\\node_modules\\pg\\lib\\native\\client.js" and externals are not allowed! |
I tried building your project on stackblitz by swapping out postgres for pg and did not encounter a build error. |
Yes, that's right. Building for |
Environment
Nuxt 3.7
Nitro 2.6.2
Cloudflare Wrangler 3.6.0
Reproduction
StackBlitz: https://stackblitz.com/github/AsyncFox/nuxt-trpc-drizzle-repro
Github repo: https://github.com/AsyncFox/nuxt-trpc-drizzle-repro
Describe the bug
After
nuxi build
, I triedwrangler pages dev dist/
to run locally, but it shows an error. I also tried deploy to cloudflare pages but it also failed.Using
nuxi dev
works fine.Additional context
I am using trpc-nuxt and drizzle-orm.
If you remove other procedures and only reserve
hello
procedure inserver\trpc\routers\index.ts
, it works fine.I guess it is also drizzle-orm related because
hello
procedure does not require any db operation.Logs
And on cloudflare pages:
The text was updated successfully, but these errors were encountered: