-
Notifications
You must be signed in to change notification settings - Fork 67
@prisma/photon installation hangs #310
Comments
Thanks for reporting @MichalLytek! |
The query still fails, so I reopened this. |
Everything works now, closing 😄 |
It's definitely getting stuck on |
@timsuchanek It doesn't hang when I install in on root |
Thanks, @MichalLytek! Can you please describe a reproduction of how to get to the described problem? |
My repository is always the best reproduction 😄 Get a Windows machine, clone the repo, go to Side note: it can hang even after printing the version missmatch error |
Perfect! I'll have a look 🙂 |
It turns out, that this neither related to Windows, nor to Photon.js. I've done a small improvement in the postinstall hook of @prisma/photon:
|
Oh, this makes sense. I think my generator tries to read photon dmmf but it's not already installed/generated yet? I will need to add some logging to file to be able to debug the generator execution. |
I am not using typegraphql and it hangs as well after updating to EDIT.: The difference I have just noticed is that for my system it downloads |
Please create a new issue for this @cypcz if you still encounter this problem. Thanks! |
When I install the fasade package, it hangs for unknown reason on the
generate
script:I can abort that but then it fails to generate manually using
prisma2 generate
:If I remove all the files it complains about, it stops on
\node_modules\@prisma\photon\runtime\index.js
and I can't remove that because thenError: Cannot find module './runtime'
😕If I provide a custom
output
path, it generates without any issue, but then it fails on making a query:I can provide more details if needed 😉
The text was updated successfully, but these errors were encountered: