Closed fbianco32 closed 1 year ago
Using 'pal c' to create a "full-stack-nextjs" project has the same problem
I found the error too, the prisma package version of paljs is not a correct one , 3.16 for node14 should be reverted to 3.15 Just overwrite the prisma with: yarn install prisma@3.15 @prisma/client@3.15
after the change paljs generate pass
I temporarily solved this issue by following the steps I listed in another issue, hope this helps!
This issue request is in #284
Issue still exists. Project was created on CLI using the full-stack-nextjs
Executing generate
will result in error:
return new Error(`${name} was already defined and imported as a type, check the docs for extending types`)
^
Error: NEXUS__UNKNOWN__TYPE was already defined and imported as a type, check the docs for extending types
Issue exists on the yarn generate:nexus
script:
$ yarn ts-node --transpile-only src/server/nexusSchema
$ ts-node -r tsconfig-paths/register -P tsconfig-nexus.json --transpile-only src/server/nexusSchema
When running yarn generate, after generating the prisma client, yarn throws this error and stops. Prisma and nexus version used are the default ones when creating a project via CLI, node version is 16.14.0