typegraphql-prisma: Genrating typegraphql resolvers stopped working in yarn2 after 0.13.0 update
Describe the Bug
When I do prisma generate
after upgrading all prisma related dependencies to latest version, the generation of typegraphql keeps going out infinitely.
To Reproduce https://github.com/Unbuttun/Olympus/tree/dev
- Clone this repo and then do
yarn
to install it. - Run
yarn db
to start docker container. - After that rename the
.env.example
in src and gaia folder to.env
- Then do
yarn prisma generate
to start the generation, it will not happen and keep going on. Expected Behavior It should generate the typegraphql resolvers like it did in last version, you can test it by using the main branch which is still using older version
Environment (please complete the following information):
- OS: Arch Linux
- Node 15.9.0
typegraphql-prisma
version [e.g. 0.13.0]- Prisma 2 version [2.20.1]
- TypeScript version (4.2.4)
Additional Context Probably the way typegraphql was generating has changed.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 17 (9 by maintainers)
Why? Prisma parses
output
config or prisma client generator provider block. Or at least it was parsing, but now with the env change it might not handle that properly… will check 👀