[legacy-framework] Generate prisma client into project instead of node_modules#124
[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/clientis 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-clientCurrently not working because of a prisma bug