When I try to compile an angular 2 application with CookieService using the AoT compiler, it doesn't compile because of the following error:
..../app.module.ngfactory.ts(436,82): error TS2346: Supplied parameters do not match any signature of call target.
When I take a look at that line, it looks like this:
if ((this.__CookieService_54 == (null as any))) { (this.__CookieService_54 = new import36.CookieService(); }
According to IntelliSense, the CookieService takes one required argument named defaultOptions, but it isn't provided by the compiled code. In my NgModule, I provide CookieService like this:
When I try to compile an angular 2 application with CookieService using the AoT compiler, it doesn't compile because of the following error:
When I take a look at that line, it looks like this:
According to IntelliSense, the CookieService takes one required argument named
defaultOptions
, but it isn't provided by the compiled code. In my NgModule, I provide CookieService like this: