yarn rw db up hangs on "prisma2 generate"
See original GitHub issueWindows 10 Pro v1909. node v12.14.1 yarn v1.21.1 Using Git Bash.
I’ve been running through the example blog tutorial, and have run into this issue at every step that requires yarn rw db up
. After successfully running yarn rw db save
, the call to yarn rw db up
will hang (forever?) at the step with prisma2 generate
. I can kill the process with Ctrl+C, and I think that it finished doing all the work, but I’m not positive. It consistently hangs for me every time, even if I run it multiple times without changing the schema.
$ C:\code\redwoodblog\node_modules\.bin\prisma2 migrate up --experimental --create-db
migrate up
All migrations are already applied
Migrate database up... [completed]
Generating the Prisma client... [started]
$ C:\code\redwoodblog\node_modules\.bin\prisma2 generate
(hangs)
I plan to dig in and see if there are any --debug
or --verbose
options I can add to provide more useful output for this investigation. If anyone can give me pointers on that, I’d appreciate it.
I see that there is an open issue for updating Prisma to preview24 #279, would it be worthwhile to wait for that first to see if it fixes my issue?
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (8 by maintainers)
Top GitHub Comments
Sorry, I meant to mention I was using Windows. I had a look at the issue you mentioned and it does appear to be the same. It might be handy to add to the tutorial that Windows users might have to terminate the command and re-run for it to work. It might be perceived as a bit clunky but at least it will allow people trying out Redwood for the first time to continue.
I’ll try to prioritize upgrading Prisma today so we have that as a baseline to test against #279