Skip to content

bug(service-worker): does not start/install (zone not stabilizing) #20970

@Ploppy3

Description

@Ploppy3

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Service worker does not start/install.

Expected behavior

Service worker should always start/install.

Minimal reproduction of the problem with instructions

  • create new project
    ng new test-service-worker --service-worker
  • add this code to the app.component's constructor:
    setInterval(function() { console.log('test'); }, 1000);
  • build app
    ng build --prod
  • service worker will never start/install

Environment


Angular version: 5.1.0
CLI: 1.6.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions