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
incremental
andnoEmit
together, sincenoEmit
prevents us from writing incremental metadata. (So nothing is actually incremental).You should consider
emitDeclarationOnly
instead 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
.