Skip to content

serviceWorker = true fails to find @angular/service-worker with yarn workspaces #8300

@spiffyjr

Description

@spiffyjr

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: 6.10.3

Repro steps.

Use yarn workspaces, set serviceWorker = true in angular-cli.json.

The log given by the failure.

Your project is configured with serviceWorker = true, but @angular/service-worker
is not installed. Run npm install --save-dev @angular/service-worker
and try again, or run ng set apps.0.serviceWorker=false in your .angular-cli.json.

Desired functionality.

The error shouldn't be fatal for an undetected service worker module. It should probably be a warning and able to be disabled similar to the TypeScript warnings for incorrect versions.

Mention any other details that might be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionseverity2: inconvenient

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions