You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
It depends on which template you're using, but TypeScript isn't something that can be easily updated so quickly because all of the libraries and frameworks you're working with might not have upgraded to reflect the changes they made. "Minor" versions in TS seem to have breaking changes, even if only minor ones unfortunately. 😐
I tested with different templates, including most current.
I also updated all other package to the most current version.
I think it's only one small change in line zone.onError.subscribe(errorInfo => reject(errorInfo));
of boot-server.ts to get it running, with current typscript 2.5.2.
Had this issue after updating my packages -angular template-, fixed it by defining zone along with it's type NgZone like this: const zone: NgZone = moduleRef.injector.get(NgZone);
in the boot.server.ts file.
Reacted by sebichondo, Asad Sahi, Pradeep Loganathan, Michel, Petre Turcu, Ken Goldthorpe, Demetrios Seferlis, Boban Stojanovski, Andrei Korober, Andrei Kitugin and 4 more
Activity
Trapulo commentedon Sep 1, 2017
same here
nothing easy in this project :(
MarkPieszak commentedon Sep 1, 2017
It depends on which template you're using, but TypeScript isn't something that can be easily updated so quickly because all of the libraries and frameworks you're working with might not have upgraded to reflect the changes they made. "Minor" versions in TS seem to have breaking changes, even if only minor ones unfortunately. 😐
juergenr commentedon Sep 2, 2017
I tested with different templates, including most current.
I also updated all other package to the most current version.
I think it's only one small change in line
zone.onError.subscribe(errorInfo => reject(errorInfo));of boot-server.ts to get it running, with current typscript 2.5.2.
Thanks for the great project!
mmgrt commentedon Sep 4, 2017
Had this issue after updating my packages -angular template-, fixed it by defining
zonealong with it's typeNgZonelike this:const zone: NgZone = moduleRef.injector.get(NgZone);in the boot.server.ts file.
juergenr commentedon Sep 5, 2017
Making zone typesafe solves the issue.
Runing current typscript 2.5.2 works now!
Thank you @mmgrt!
christos-kostopoulos commentedon Sep 5, 2017
const zone:any = moduleRef.injector.get(NgZone);
SteveSandersonMS commentedon Sep 6, 2017
Thanks for letting us know.
When we update the template sources to TypeScript 2.5.2+ this issue will inevitably surface and we'll use one of your suggested resolutions.
Closing for now because there's no action to take on it (at least, not prior to updating to TypeScript 2.5.2).