Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

UpdateEvent & PushOptions are not exported from library #166

Open
maciejtreder opened this issue Jun 20, 2017 · 0 comments
Open

UpdateEvent & PushOptions are not exported from library #166

maciejtreder opened this issue Jun 20, 2017 · 0 comments

Comments

@maciejtreder
Copy link

Following lines:

import { NgServiceWorker, UpdateEvent } from '@angular/service-worker';

/*
Some code here
*/

this.sw.checkForUpdate().filter(update => update).subscribe(update => {
            console.log("ws update", update);
            this.sw.updates.subscribe((toInstall: UpdateEvent) => {
                console.log("toInstall", toInstall);
            });
        });

causes compilation issue:

ERROR in /path/to/project/src/app/app.component.ts (4,27): Module '"/path/to/project/node_modules/@angular/service-worker/index"' has no exported member 'UpdateEvent'.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant