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
App won't build with service worker after updating to v6 #23692
Comments
I have also experienced the same error after upgrading to v6, |
@boradakash Yeah, you're right the |
We're on it. |
thx @boradakash |
I was having the same problem when my config file configure like this: |
I'm closing this as I believe the issue to be fixed. As I've tested with Angular 7, |
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. |
I'm submitting a...
Current behavior
App does not build with a service worker
Expected behavior
App should build with service worker enabled after updading to v6.
Minimal reproduction of the problem with instructions
Update an ng5 app with a service worker to ng6 using https://update.angular.io/
Build the app:
ng build --prod
NB: I even tried to set up the service worker again with the new
@angular/pwa
package as described here: https://angular.io/guide/service-worker-getting-started#adding-a-service-worker-to-your-projectNB: The docs says that the
ngsw-config.json
is located in thesrc
folder (https://angular.io/guide/service-worker-config#service-worker-configuration)While the error says it should be located at the root of the project. The
@angular/pwa
create the file at the root ; moving thengsw-config.json
file to thesrc
folder does not fix the issue.Environment
The text was updated successfully, but these errors were encountered: