We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't deploy nextJs + prisma on Netlify. It works fine on my local PC (wsl2, node 14.17.0)
The report says:
12:02:37 PM: ModuleNotFoundError: Module not found: Error: Can't resolve '_http_common' in '/opt/build/repo/node_modules/@prisma/client/runtime' 12:02:37 PM: > Build error occurred 12:02:37 PM: Error: > Build failed because of webpack errors 12:02:37 PM: at /opt/build/repo/node_modules/next/dist/build/index.js:15:924 12:02:37 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/telemetry/trace/trace.js:6:584) 12:02:37 PM: 12:02:37 PM: ──────────────────────────────────────────────────────────────── 12:02:37 PM: "build.command" failed 12:02:37 PM: ──────────────────────────────────────────────────────────────── 12:02:37 PM: 12:02:37 PM: Error message 12:02:37 PM: Command failed with exit code 1: next build 12:02:37 PM: 12:02:37 PM: Error location 12:02:37 PM: In Build command from Netlify app: 12:02:37 PM: next build
Try to deploy on netlify. Force NODE_VERSION 14.17.0 in environment variables Prisma imported in the nextJs api, not directly in the pages
No response
"prisma": "^2.28.0", "@prisma/client": "^2.28.0",
Netlify NODE_VERSION 14.17.0
prisma : 2.28.0 @prisma/client : 2.28.0 Current platform : debian-openssl-1.1.x Query Engine : query-engine 89facabd0366f63911d089156a7a70125bfbcd27 (at node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x) Migration Engine : migration-engine-cli 89facabd0366f63911d089156a7a70125bfbcd27 (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x) Introspection Engine : introspection-core 89facabd0366f63911d089156a7a70125bfbcd27 (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x) Format Binary : prisma-fmt 89facabd0366f63911d089156a7a70125bfbcd27 (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x) Default Engines Hash : 89facabd0366f63911d089156a7a70125bfbcd27 Studio : 0.417.0
The text was updated successfully, but these errors were encountered:
Update. I don't get the error with Vercel
Sorry, something went wrong.
Closing in favour of #7539 which will remove dependency on _http_common.
_http_common
No branches or pull requests
Bug description
I can't deploy nextJs + prisma on Netlify. It works fine on my local PC (wsl2, node 14.17.0)
The report says:
How to reproduce
Try to deploy on netlify. Force NODE_VERSION 14.17.0 in environment variables
Prisma imported in the nextJs api, not directly in the pages
Expected behavior
No response
Prisma information
"prisma": "^2.28.0",
"@prisma/client": "^2.28.0",
Environment & setup
Netlify
NODE_VERSION 14.17.0
Prisma Version
The text was updated successfully, but these errors were encountered: