Skip to content
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

Can't open Prisma Studio from WSL 2 #719

Closed
twhitson opened this issue Jul 5, 2021 · 3 comments
Closed

Can't open Prisma Studio from WSL 2 #719

twhitson opened this issue Jul 5, 2021 · 3 comments
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug.
Milestone

Comments

@twhitson
Copy link

twhitson commented Jul 5, 2021

  1. Prisma version (prisma -v or npx prisma -v):
prisma               : 2.26.0
@prisma/client       : 2.26.0
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine 9b816b3aa13cc270074f172f30d6eda8a8ce867d (at node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine     : migration-engine-cli 9b816b3aa13cc270074f172f30d6eda8a8ce867d (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core 9b816b3aa13cc270074f172f30d6eda8a8ce867d (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary        : prisma-fmt 9b816b3aa13cc270074f172f30d6eda8a8ce867d (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : 9b816b3aa13cc270074f172f30d6eda8a8ce867d
Studio               : 0.408.0
  1. Logs from Developer Tools Console or Command line, if any:

Browser:

Error starting Prisma Client: {
  "stack": "Error: Unable to get Prisma Client generator. This is a bug.
        at PCW.getDMMF (/home/twhitson/.nvm/versions/node/v16.4.1/lib/node_modules/prisma/build/index.js:108850:19)
        at async PrismaService.respond (/home/twhitson/.nvm/versions/node/v16.4.1/lib/node_modules/prisma/build/index.js:109180:50)
        at async /home/twhitson/.nvm/versions/node/v16.4.1/lib/node_modules/prisma/build/index.js:109354:35",
  "message": "Unable to get Prisma Client generator. This is a bug."
}
ki/this.init@http://localhost:5555/assets/index.js:1:103816

CLI:

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Prisma Studio is up on http://localhost:5555
Unable to get DMMF from Prisma Client:  Error: Unable to get Prisma Client generator. This is a bug.
    at PCW.getDMMF (/home/twhitson/.nvm/versions/node/v16.4.1/lib/node_modules/prisma/build/index.js:108850:19)
    at async PrismaService.respond (/home/twhitson/.nvm/versions/node/v16.4.1/lib/node_modules/prisma/build/index.js:109180:50)
    at async /home/twhitson/.nvm/versions/node/v16.4.1/lib/node_modules/prisma/build/index.js:109354:35
  1. Other relevant versions:
  • Microsoft Windows 10 Pro 10.0.19043 Build 19043
  • Ubuntu 20.04.2 LTS on Windows 10 x86_64
  • zsh 5.8
  • node v16.4.1
  • npm v7.18.1
  • yarn v1.22.5
@twhitson
Copy link
Author

twhitson commented Jul 5, 2021

I managed to figure this out, running prisma generate fixed it. I'm going to leave this bug open, however, because the error messaging could probably be improved.

@sdnts
Copy link
Contributor

sdnts commented Jul 9, 2021

Hey @twhitson, this is definitely a bug, because Studio shouldn't depend on prisma generate at all. I'll investigate on WSL2, thanks for reporting!

@sdnts sdnts added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. labels Jul 9, 2021
@sdnts
Copy link
Contributor

sdnts commented Jul 15, 2021

Okay I've just pushed out a dev version that should fix this. You can try it out by installing it: npm i prisma@dev @prisma/client@dev!

Going to close this now, but if you still see this, let me know!

@sdnts sdnts closed this as completed Jul 15, 2021
@sdnts sdnts added this to the 2.28.0 milestone Jul 15, 2021
@sdnts sdnts self-assigned this Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

2 participants