I am developing a next.js app. It has the following tsconfig.js
{
\"compilerOptions\": {
\"target\": \"ES2018\",
\"module\": \"esnext\",
From TypeScript issue #33809:
It really doesn't make sense to have
incrementalandnoEmittogether, sincenoEmitprevents us from writing incremental metadata. (So nothing is actually incremental).You should consider
emitDeclarationOnlyinstead ofnoEmit, if you actually just want incremental checking.
According to this, the incremental: true flag has done nothing to speed up the build while noEmit: true is defined. So you should either remove noEmit: true or change it to emitDeclarationOnly: true.
You can control the output folders using outDir and declarationDir.