-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --prod error because ngsw-config.json not moved during migration #10357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
same problem here... |
Actions: keep the file at the current path, but add argument option to the build and set the option properly if the file exists. |
I resolved my issue on windows by changing the path created in Removing the leading / |
but Is the |
@markau Thanks, it also needs to move |
I was having the same problem when my config file configure like this: |
Well. My "ngsw-config.json" file is in the root directory and in my angular.json I set |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
From an Angular 5 project generated with
--service-worker
:Observed behavior
Desired behavior
Migration from CLI 1.7 to 6.0 should move
/src/ngsw-config.json
to/ngsw-config.json
if existing.The text was updated successfully, but these errors were encountered: