Describe the bug
prisma playground command fails if you use a .graphqlconfig.yml file in combination with the generate property in the prisma.yml file.
$ prisma playground
â–¸ Cannot read property 'getProjects' of null
To Reproduce
Steps to reproduce the behavior:
prisma.yml and .graphqlconfig.yml like belowprisma deployprisma playgroundgenerate property from the prisma.yml and execute prisma playground again, it works but now you don't have generated files anymoreScreenshots

Versions (please complete the following information):
prisma.yml
endpoint: http://localhost:4466
datamodel: datamodel.prisma
generate:
- generator: typescript-client
output: ../src/generated/prisma
- generator: graphql-schema
output: ../src/generated/prisma
hooks:
post-deploy:
- prisma generate
.graphqlconfig.yml
projects:
database:
schemaPath: ./src/generated/prisma.graphql
extensions:
prisma: ./database/prisma.yml
Until this is fixed, I make prisma deploy, then comment the generate part, then prisma playground, and do it again when I need to deploy.
I can confirm this bug.
@jide thanks for the workaround. Even the obvious ones may not seem obvious for some people.
@marktani is there an update on the issue?
Hi,
I can't reproduce this in the latest version of prisma cli: https://www.youtube.com/watch?v=wRSSwz8eWuA
Here is the code that I used: https://github.com/pantharshit00/prisma-issue-3215
cc @divyenduz
Thanks for the reproduction Harshit. I can confirm that even using the Prisma CLI version mentioned in the issue with Harshit's reproduction does not reproduce this issue.
divyendusingh [prisma-issue-3215]$ npx [email protected] generate
Generating schema 28ms
Saving Prisma Client (TypeScript) at /Users/divyendusingh/Documents/projects/graphcool/triage/prisma-issue-3215/generated/prisma
I will close this one for now. If the problem persists, please open a new issue with a reproduction. Thanks.
I'm not using a .graphqlconfig.yml file yet I still get this issue.
_prisma.yml_
endpoint: http://localhost:4466
datamodel: datamodel.prisma
secret: ***
generate:
- generator: typescript-client
output: ../src/generated/prisma-client/
hooks:
post-deploy:
- prisma generate
Folder structure

Edit: I'll create a new issue.
Update: for me, the problem was solved by running prisma playground from within /prisma and not from within the root directory.
Update: for me, the problem was solved by running
prisma playgroundfrom within/prismaand not from within the root directory.
That solved my issue as well. thanks 😀
Update: for me, the problem was solved by running
prisma playgroundfrom within/prismaand not from within the root directory.
Thanks! That solved it for me too
Thanks! Although it should be fixed properly. The problem is still happening. Just tested with the latest version 1.34.10.
Most helpful comment
Update: for me, the problem was solved by running
prisma playgroundfrom within/prismaand not from within the root directory.