Skip to content

Angular CLI 1.5.0-rc.6 does not support @angular/service-worker@5.0.0-rc.8 #8247

@niikoo

Description

@niikoo

Bug Report or Feature Request (mark with an x)

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

Versions.

ng -v

Angular CLI: 1.5.0-rc.6
Node: 8.5.0
OS: win32 x64
Angular: 5.0.0-rc.8
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router

@angular/cdk: 2.0.0-beta.12
@angular/cli: 1.5.0-rc.6
@angular/material: 2.0.0-beta.12
@angular/service-worker: 5.0.0-rc.8
@angular-devkit/build-optimizer: 0.0.31
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.34
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0-rc.6
@schematics/angular: 0.0.48
typescript: 2.5.3
webpack: 3.8.1

Repro steps.

ng build --prod --aot --base-href=.

The log given by the failure.

**Build fails with error: **

The installed version of @angular/service-worker is 5.0.0-rc.8. 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-rc.8. 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.

Desired functionality.

The newest @angular/cli isn't compatible with any of the new @angular/service-worker versions; which it should.

Mention any other details that might be useful.

The old version of @angular/service-worker is working, 1.0.0-beta.16.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix

    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