Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k
stars
136
forks
source link
Unable to build Angular 17 PWA fails with Data path "/serviceWorker" must be boolean #404
Open
jdalysgfy opened 5 months ago
Describe the bug
I am unable to build an Angular 17 Project after adding
@angular/pwa
followed by@angular-architects/module-federation
.Running
ng build
after adding@angular-architects/module-federation
results in the below error:Error seems to be a result of the
serviceWorker
field inangular.json
now acceptingstring
values.angular.json (Angular 16)
angular.json (Angular 17)
Workaround
Set the
serviceWorker
value inangular.json
back to how it was in Angular 16 PWA:How to Reproduce
angular.json (Angular 17)
Expected Behaviour
Should build successfully.