New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[legacy-framework] Generate prisma client into project instead of node_modules #124
Conversation
So the main issue here is
|
Update: I got it working! |
Actually not... |
Well, I'm giving up on this for now.
|
can I take a look? if yes, let me know how can I reproduce it please |
@sijad you sure can!! Steps to reproduce are here: prisma/prisma#2195 |
So this branch as of right now does work properly on the local machine with But it is still failing a production deployment to Zeit with:
Not sure how to fix this. Might be as easy as copying moving some files around. |
this can be related to vercel/vercel#2824 |
No it's only related to our build step and how we are moving files around. That error shows that there are no files where it's looking. If it was a native binary issue, the wrong binary would show there |
is it possible to download possible binaries using @prisma/fetch-engine and include all of them in production? |
@sijad so the issue is that there are no binaries. Not that it has the wrong binaries. The webpack plugin added in this PR substitutes __dirname for what it is at build time. And at build time the files are in But in any case, this is low priority right now, so I'm not too worried about it. |
It turns out that generating prisma client into
node_modules/@prisma/client
is flaky in that it often get's blown away when installing or updating dependencies.So Blitz apps will generate it into the project, but in a hidden folder:
db/.generated-prisma-client
Currently not working because of a prisma bug