You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in #13870 semantic diagnostic errors from the forked type checker aren't passed to the final diagnostic messages and cannot be read by Webpack plugins. This happens during second and further runs of the build --watch.
Describe the solution you'd like
The straightforward solution would be to add one more option to the ng build.
But, since I don't really get why we don't collect semantic diagnostics from the forked type checker for the 2-nd and further runs, I'd say that we could just set diagMode in AngularCompilerPlugin._emit() to DiagnosticMode.All.
Describe alternatives you've considered
The working solution is to set forkTypeChecker build option to false. But my assumption is that on the big projects it means slower builds.
The text was updated successfully, but these errors were encountered:
This is by design and it is intended that type errors aren't sent to Webpack when using the forked type checker. If they were, and they blocked the compilation, then there's no reason to in having a forked type checker turned on as rebuilds would just take much longer.
🚀 Feature request
Command (mark with an
x
)Description
As described in #13870 semantic diagnostic errors from the forked type checker aren't passed to the final diagnostic messages and cannot be read by Webpack plugins. This happens during second and further runs of the
build --watch
.Describe the solution you'd like
The straightforward solution would be to add one more option to the
ng build
.But, since I don't really get why we don't collect semantic diagnostics from the forked type checker for the 2-nd and further runs, I'd say that we could just set
diagMode
inAngularCompilerPlugin._emit()
toDiagnosticMode.All
.Describe alternatives you've considered
The working solution is to set
forkTypeChecker
build option tofalse
. But my assumption is that on the big projects it means slower builds.The text was updated successfully, but these errors were encountered: