cli
cli copied to clipboard
`nuxt typecheck` fails for monorepo that uses `references` to reference other TS projects in `tsconfig`, but is not opting-in to new `Project References`
In #928, --build (-b) flag is automatically enabled when references is not empty, but there seems to be some configuration error that makes the typecheck fail with Referenced project '[PATH]' may not disable emit., but emits for the referenced projects is enabled and can be run with tsc -b from other projects just fine.
The error seems to affect legacy users only, if the user opt-in to use the new TS Project References, nuxt typecheck (vue-tsc -b) is able to complete without error.
The error is able to reproduce in older version of Nuxt (prior to alpha-4 / rc, which have the updated @nuxt/cli) by using vue-tsc -b directly.
Relateds:
- https://github.com/nuxt/nuxt/pull/30665
- https://github.com/nuxt/nuxt/discussions/32485#discussioncomment-13640698