project builds in Vercel but link only populates "Application error: a server-side exception has occurred" and Runlog indicates PrismaClientInitializationError
Link to the code that reproduces this issue
https://github.com/morganwestcoding/forme-nextjs
To Reproduce
When I upload repository to vercel, it builds then i get the following errors
Error: Failed to fetch posts. at o (/var/task/.next/server/app/page.js:1:18226) at async b (/var/task/.next/server/app/page.js:1:18882) { digest: '3513136040' }
Error in getPosts: PrismaClientInitializationError:
Invalid prisma.post.findMany() invocation:
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".
We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.
This is likely caused by a bundler that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" next to the resulting bundle. Ensure that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied next to the bundle or in "node_modules/.prisma/client".
We would appreciate if you could take the time to share some information with us. Please help us by answering a few questions: https://pris.ly/engine-not-found-bundler-investigation
The following locations have been searched: /var/task/node_modules/.prisma/client /var/task/.next/server /vercel/path0/node_modules/.prisma/client /var/task/.prisma/client /tmp/prisma-engines at In.handleRequestError (/var/task/.next/server/chunks/418.js:122:7069) at In.handleAndLogRequestError (/var/task/.next/server/chunks/418.js:122:6119) at In.request (/var/task/.next/server/chunks/418.js:122:5827) at async a (/var/task/.next/server/chunks/418.js:127:11014) at async o (/var/task/.next/server/app/page.js:1:17560) at async b (/var/task/.next/server/app/page.js:1:18882) { clientVersion: '5.14.0', errorCode: undefined }
Current vs. Expected behavior
I am only seeing the error screen here https://forme-nextjs.vercel.app/ but i should be seeing my application ui
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103
Available memory (MB): 8192
Available CPU cores: 8
Binaries:
Node: 20.14.0
npm: 10.7.0
Yarn: 1.22.21
pnpm: N/A
Relevant Packages:
next: 14.2.3 // Latest available version is detected (14.2.3).
eslint-config-next: 14.0.4
react: 18.3.1
react-dom: 18.3.1
typescript: 5.4.5
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
No response
This issue has been automatically marked as stale due to inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
This issue has been automatically closed due to inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!