You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change introduced here by #8452 results in the unnecessarily early registration of ts-node which subsequently attempts to load a project's tsconfig.json if present.
This isn't an issue for most projects, because the tsconfig tends to be static and independent.
However though, with Nuxt 3 we've taken the approach of immensely improving upon the developer experience by providing auto imports among with other typescript first conventions to make the workflow as seamless as possible.
Nuxt 3 projects contain a root tsconfig.json file which extends from an auto generated tsconfig located at .nuxt/tsconfig.json, hence the issue explained above. This has resulted in Nuxt graphql modules which leverage the amazing graphql code generator developed here to crash whenever that .nuxt/tsconfig.json hasn't been previously generated.
Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
The change introduced here by #8452 results in the unnecessarily early registration of
ts-node
which subsequently attempts to load a project'stsconfig.json
if present.This isn't an issue for most projects, because the tsconfig tends to be static and independent.
However though, with Nuxt 3 we've taken the approach of immensely improving upon the developer experience by providing auto imports among with other typescript first conventions to make the workflow as seamless as possible.
Nuxt 3 projects contain a root
tsconfig.json
file which extends from an auto generated tsconfig located at.nuxt/tsconfig.json
, hence the issue explained above. This has resulted in Nuxt graphql modules which leverage the amazing graphql code generator developed here to crash whenever that.nuxt/tsconfig.json
hasn't been previously generated.Steps to Reproduce the Bug or Issue
nuxt-graphql-client
pnpm i
to install dependenciespnpm prepare
to successfully prepare the appTrigger Issue
playground/.nuxt/tsconfig.json
filepackage.json
and removed the patched dependency from line 70pnpm i
to apply changespnpm prepare
to see issueExpected behavior
Should run properly without the prerequisites of the project's
tsconfig.json
file being present.Screenshots or Videos
No response
Platform
graphql
version: 16.6.0@graphql-codegen/cli
version(s): 2.13.11Codegen Config File
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: