salemdar / angular2-cookie

Implementation of Angular 1.x $cookies service to Angular 2
MIT License
109 stars 29 forks source link

EXCEPTION: Token must be defined when building with AOT #43

Open ottosson opened 7 years ago

ottosson commented 7 years ago

I get a really annoying error message and crash when I build my project with ahead of time compilation.

EXCEPTION: Token must be defined!
...
EXCEPTION: Uncaught (in promise): Error: Token must be defined!
...
Unhandled Promise rejection: Token must be defined! ; Zone: angular ; Task: Promise.then ; Value: Error: Token must be defined!
...

I use Angular 2.4.1 with angular2-cookie v1.2.6. Might this be related to #37?

brendanalexdr commented 7 years ago

Am getting this too