Skip to content

Service Worker not working with CLI 1.5.0 #8322

@mohammedzamakhan

Description

@mohammedzamakhan

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Angular CLI: 1.5.0
Node: 8.6.0
OS: darwin x64
Angular: 5.0.0

Repro steps.

Created a new project, added @angular/service-worker, and set the serviceWorker flag, and ran ng build --prod, and got this error

ng build --prod
The installed version of @angular/service-worker is 5.0.0. This version of the CLI
requires the @angular/service-worker version to satisfy >= 1.0.0-beta.5 < 2.0.0. Please upgrade
your service worker version.
Error: The installed version of @angular/service-worker is 5.0.0. This version of the CLI
requires the @angular/service-worker version to satisfy >= 1.0.0-beta.5 < 2.0.0. Please upgrade
your service worker version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions