Closed shubhamrawat090 closed 7 months ago
i ran this into this issue
solution -
cd into /packages/db/prisma
then run cmd yarn add prisma
then run npx prisma migrate dev
and it fixed my error
@shubhamrawat090 you can run 1.yarn prisma migrate dev 2.yarn seed:db
working for me
@vibhaw1904 Thanks these helped. I'll push a PR for having these in the readme.
use yarn add prisma typescript ts-node @types/node --save-dev
in packages/db
cd packages/db
yarn add prisma typescript ts-node @types/node --save-dev
then use npx prism generate
it works
even after performing the given steps I'm still getting this error
This could solve your issue. I went in this above steps and it worked well for me.
I don't know why the f!uck this "Module not found" issue occur every time when i i go with NPM, even it occurred for me while installing 100xdev.app (cms). https://github.com/redwoodjs/redwood-tutorial/issues/64
1.It migrates perfectly
1.It migrates perfectly 2. When I try to seed the DB it gives this first 3. then I ran this command yarn add typescript ts-node @types/node installed all of it 4. then again if I try to seed the DB it gives this 5. and same for the yarn command
Try clearing your DB and then prisma generate + seed again. Or what I did was started a new postgres container and re-ran migrate + generate + seed again and that fixed it for me.
1.It migrates perfectly 2. When I try to seed the DB it gives this first 3. then I ran this command yarn add typescript ts-node @types/node installed all of it 4. then again if I try to seed the DB it gives this 5. and same for the yarn command
Try clearing your DB and then prisma generate + seed again. Or what I did was started a new postgres container and re-ran migrate + generate + seed again and that fixed it for me.
I did try this, but I suppose the issue is with Neon db, it takes longer than 10 secs to seed the remote db so it fails
1.It migrates perfectly 2. When I try to seed the DB it gives this first 3. then I ran this command yarn add typescript ts-node @types/node installed all of it 4. then again if I try to seed the DB it gives this 5. and same for the yarn command
Try clearing your DB and then prisma generate + seed again. Or what I did was started a new postgres container and re-ran migrate + generate + seed again and that fixed it for me.
I did try this, but I suppose the issue is with Neon db, it takes longer than 10 secs to seed the remote db so it fails
In that case I suggest using docker to run a postgres container locally and using that. It will be much faster that way.
I did these steps
I am using a windows machine. I don't know if that's causing any issues. If yes, then urgent help is needed there. What I have noticed that it searches in this path D:\Harkirat_Codebase\daily-code\node_modules\node_modules\prisma\build\index.js Here node_modules is 2 times in the path. How did it take this path and how to I change/fix this.
ANYONE WHO HAS RAN INTO THIS ISSUE AND FIXED IT PLEASE DO HELP.