Cannot initialize prisma via Terminal
Describe the bug
Hi!
I'm currently using the NextJS fork, but when I tried to initialize prisma (npx prisma init), it errors out the following: `~/projects/nextjs-pzff2x ❯ npx prisma init
Downloading Prisma engines for Node-API for debian-openssl-1.1.x [] 0%Error: request to https://binaries.prisma.sh/all_commits/73e60b76d394f8d37d8ebd1f8918c79029f0db86/debian-openssl-1.1.x/prisma-fmt.gz.sha256 failed, reason: socket hang up`
Link to the blitz that caused the error
https://stackblitz.com/edit/nextjs-pzff2x?view=preview
Steps to reproduce
npm install prisma @prisma/clientnpx prisma init
Expected behavior
It should initialize prisma and generate prisma schema and files.
Parity with Local
- [X] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response
@JNussenzveig Thanks for the report. The download fails due to CORS restrictions, which we cannot do much about at the moment.
However, even if it worked, it's worth noting that prisma won't work anyway, since it relies on native binaries that WebContainer cannot run.
@jrvidal , got it! Thanks for the explanation. Is there any other alternatives or something like that?
On Tue, 15 Mar 2022 at 11:54 Roberto Vidal @.***> wrote:
@JNussenzveig https://github.com/JNussenzveig Thanks for the report. The download fails due to CORS restrictions, which we cannot do much about at the moment.
However, even if it worked, it's worth noting that prisma won't work anyway, since it relies on native binaries that WebContainer cannot run.
— Reply to this email directly, view it on GitHub https://github.com/stackblitz/webcontainer-core/issues/633#issuecomment-1068079975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2OZDQSE3VRAFVIEXR4HOTVACQAXANCNFSM5QY4LZIQ . You are receiving this because you were mentioned.Message ID: @.***>
@JNussenzveig The only work around for this would be that prisma has a fallback for environments that don't support native binaries, either compile their native code to WASM or provide some sort of JS fallback.
I am going to close this issue for now because there is not much to do on our side at this point.