Replies: 5 comments 1 reply
-
|
Any word on this? 🦗 🦗 🦗 |
Beta Was this translation helpful? Give feedback.
-
|
I support your thoughts. I'm really curious why next forced to set noEmit true. |
Beta Was this translation helpful? Give feedback.
-
|
Can somebody explain why this was converted into a discussion and how to handle use-cases like monorepos and composite projects? I'm disappointed in how this issue is being handled. Why did Vercel choose to edit their users' files instead of explaining the issue and exiting nonzero if necessary? |
Beta Was this translation helpful? Give feedback.
-
|
Also running into this issue, and based on the number of reactions the above comments are getting I believe many others are as well so I feel like this deserves some attention. If we could at least get a response from a maintainer we can look at making a PR to fix. |
Beta Was this translation helpful? Give feedback.
-
|
We managed to get around this by explicitly setting noEmit to false, then Next will not update it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Next.js are you using?
11.0.1
What version of Node.js are you using?
v15.14.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
not deploying
Describe the Bug
I have a composite TS project, and in root directory I have tsconfig with emitDeclarationOnly: true, every other subproject has noEmit: false in their tsconfig. However, next build forces noEmit: true here (https://github.com/vercel/next.js/blob/canary/packages/next/lib/typescript/runTypeCheck.ts#L43). So when building next application I get
Since on first run next adds noEmit: true (if there is no such field) in my config with message:
I believe forcing noEmit to true is a bug.
Expected Behavior
TypeScript reports no errors.
To Reproduce
Beta Was this translation helpful? Give feedback.
All reactions