Closed birksy89 closed 3 years ago
Usually prisma will automatically run npx prisma generate
for you, but sometimes that fails as you can see. The solution is indeed to run npx prisma generate
.
I had the same issue. npx prisma generate
fixed it. I installed Tailwind recipe soon after generating a blitz app.
I wasted nearly 2 days on this problem trying to isolate it.
Turns out, Prisma does NOT work with SvelteKit using NPM in production in some very limited circumstances. (I'm building for SSR and deploying using the Node adaptor to my CapRover instances).
This is the fix:
Ditch NPM for building and instead switch to yarn.
npm i -g yarn
.
Your commands like npm run dev
will now become yarn dev
Update any workflows to use yarn build, yarn test, etc. Get rid of the --if-present if you use that.
But first, you'll also need to dump the node_modules/ directory as well as your package-lock.json.
Run yarn install
and you are good to go.
Screw you, npm. I'm done with you!
I had the same issue.
npx prisma generate
fixed it. I installed Tailwind recipe soon after generating a blitz app.
That solved it for me. Thank you @aravindballa
Usually prisma will automatically run
npx prisma generate
for you, but sometimes that fails as you can see. The solution is indeed to runnpx prisma generate
.
Wow, thanks for answer. That solved for me.
What is the problem?
After installing the tailwind Recipe, I encountered this error when trying to load a page
I discovered this pre-existing issue when searching, and it seems to be strongly connected: https://github.com/prisma/prisma-client-js/issues/560
Following the step / command in that issue does seem to solve the problem, but I'm not sure if it is the correct action to take:
Steps to Reproduce
blitz install tailwind
blitz start
Versions
Other