ng test exception via commented out .browserslistrc file #21111
Labels
area: @angular-devkit/build-angular
devkit/build-angular:karma
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
Bug Report
Affected Package
I'm not exactly sure where this bug is originating. My guess is
@angular-devkit/build-angular
or@angular/cli
.Is this a regression?
Yes
Description
An Angular project I am working on had a
.browserslistrc
file but all the fields were commented out like so:After upgrading from Angular 11 to Angular 12, running
ng test
threw a very cryptic exception somehow related to the commented out lines in.browserslistrc
.ng build
andng serve
ran correctly with no exceptions.Minimal Reproduction
First create a new test app:
Comment out all lines in
.browserslistrc
. Then do:You should see the exception below.
Exception or Error
Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: