cli icon indicating copy to clipboard operation
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`

Open NamesMT opened this issue 7 months ago • 0 comments

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

NamesMT avatar Jul 08 '25 06:07 NamesMT