Open remycross1019 opened 1 year ago
It looks like some how prisma client is not generated. It could be schema is not migrated yet. Can you please share your code dir structure?
I am getting the same issue deploying on Vercel Everything was working totally fine, I pushed my PlanetScale DB to production, then everything went south. I'm using Nuxt 3
I also started getting '.prisma/client/index-browser' cannot be resolved,
Here is the repo if you want to take a quick look https://github.com/daver987/hpl-website-nuxt
I was able to get this issue figured out, for some reason the paths changed or something changed maybe with an update. Here is what I used to resolve the issue. I added this into my Nuxt 3 config
vite: {
resolve: {
alias: { '.prisma/client/index-browser': `@prisma/client/index-browser` },
},
},
running into this
turned on a previewFeature, now all branches are deploying onto Google App Engine with the following error:
this error is thrown on initialization of PrismaClient, ie:
db = new PrismaClient();
For context, this was working perfectly fine before adding in the preview feature. nothing broke on local environment before running a deployment. We reverted the commit, and have tried for hours to deploy several unaffected branches.
Very confused why other branches would be affected by this as well. We've cleared about all caches we can think of. The prisma package has also been pinned for a couple of weeks now so we don't think it's a version issue with prisma. We've tried all pre/post install/build approaches as well.
@janpio @pritam199902 any ideas?
@janpio @pritam199902 circling back - we had to re-install prisma in order for this to work again..
rather odd solution, would you know why the node_modules path resolution might have broken after enabling a previewFeature?
No idea, sorry. If you can reproduce this in any way, please open a new issue and describe what happened.
Bug description
Whenever I try to run my dev server, I get this error. I have tried to run prisma generate many time and reinstall all my dependencies but I still get the error.
How to reproduce
I run "npm run dev" I try to log into my server
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version