Errors in child compilers not reported, process exits without info #17565
Labels
area: devkit/build-angular
area: devkit/build-webpack
devkit/build-angular:browser
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
馃悶 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: ....no
Description
If a compilation includes child compilations as is the case when using worker-loader for example (or many other webpack loaders/plugins) the build process can fail and exit without providing any info but the exit code being 1.
馃敩 Minimal Reproduction
clone this, run ng build, no errors will be shown except of non-0 exit code or "failed to compile" in serve mode.
anything with a child compiler emits errors into it's own errors object.
you code in createBrowserLoggingCallback
which delegates to (stats.hasErrors() does not take into account the possibility of errors in child compilers.
馃敟 Exception or Error
馃實 Your Environment
The text was updated successfully, but these errors were encountered: