yoga2 icon indicating copy to clipboard operation
yoga2 copied to clipboard

Could not a find a valid `prisma.client` at `.yoga/prisma-client`

Open bogdansoare opened this issue 5 years ago • 2 comments

Describe the bug When trying to start yoga dev server I get the following error

yarn dev
yarn run v1.15.2
$ yoga dev


 INFO  Starting development server...
 ERROR  Could not a find a valid `prisma.client` at `.yoga/prisma-client`. Try running prisma deploy to generate the needed files.

To Reproduce Steps to reproduce the behavior:

  1. yarn create yoga
  2. Start from scratch
  3. db-yoga (Template with Prisma database support)
  4. yarn prisma deploy
  5. yarn dev

Expected behavior Dev server should run

Versions (please complete the following information):

  • OS: OS X Mojave
  • yoga CLI: 0.0.20

bogdansoare avatar May 03 '19 09:05 bogdansoare

I'm having this problem as well😢

guledali avatar May 06 '19 08:05 guledali

Maybe you weren't able to create .yoga/prisma-client/index.ts when you did yarn prisma deploy. Do you receive the following message when you do yarn prisma deploy:

Saving Prisma Client (TypeScript) at ${yourCurrentDirectory}/.yoga/prisma-client/

yoshiakis avatar May 12 '19 07:05 yoshiakis