-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
prisma client could not be resolved #19036
Comments
More simple reproduction: https://stackblitz.com/edit/github-jxnpwg49?file=server%2Fapp.ts,vite.config.ts,package.json&terminal=build (needs to run locally as prisma does not work in stackblitz) It seems prisma generates For a workaround, you can change the location.
and update the import to use |
Not sure this is actionable for us either. Just to note, this repro is on Vite 5, but there is a prisma related issue with Vite 6 as well in remix-run/react-router#12610. |
I changed the output as
and also changed the import as While building vite said this
and the server logs on vercel have this error
Is there something that i am missing? |
Describe the bug
I started with a default vercel template for react router v7, deployed it on vercel, everything works. Now when i add prisma and start the build, vite says
".prisma/client/default" is imported by ".prisma/client/default?commonjs-external", but could not be resolved – treating it as an external dependency.
and deployment crashes with an internal server error.I had already raised this issue on react-router but they closed it saying that this isn't a react router bug
Reproduction
https://github.com/dhruvkaushik305/testing-prisma.git
Steps to reproduce
run
npm run build
and the cli shows that error messageSystem Info
Used Package Manager
npm
Logs
These are the server logs on vercel
Validations
The text was updated successfully, but these errors were encountered: