Production build with PWA does not show correct error info #14813
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
The previous version in which this bug was not present was: 7
Description
When I build Angular 8 app with PWA in production mode, while "ngswConfigPath" in angular.json is not set correctly, build result depends on build command:
ng build --prod
does not show any error, build looks like successfulnpm run ng build -- --prod
ends with ELIFECYCLE error without any detailed informations🔬 Minimal Reproduction
ng new BugReportApp
ng add @angular/pwa
angular.json
file and brokengswConfigPath
setting - IE set its value to"xxx"
ng build --prod
does not show any build error!?npm run ng build -- --prod
shows only default error message without any useful informationsIn Angular 7 same steps shown more useful error info in both cases.
🔥 Exception or Error
Only error shown while running build using npm is this one:
debug log content:
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: