These are chat archives for angular/angular-2-ionic-2

15th
Jan 2018
Ross Rawlins
@Ross-Rawlins
Jan 15 2018 09:42
hey folks
can anyone assits me
I have a custom component that is an entry component that is shared and lazy loaded on a sharead module
but I cant get any of the ionic directives to run in it
If 'ion-title' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
even though it is sharead and imported int eh page.
ahmadlinus
@ahmadlinus
Jan 15 2018 10:29
Hi guys, does anybody know the error 'Can't resolve all parameters for CookieService' in Ionic means? I am running it with Ionic 3.6, Angular Core/CLI 4.1.3 and Node 8.9
I have the problem when running ionic serve , and I didn't have it before!
UncertaintyP
@UncertaintyP
Jan 15 2018 10:51
Sometimes this comes from circular dependencies in the respective service
The message should tell you what it can not resolve that is the ? which represent the service in the CookieService constructor
ahmadlinus
@ahmadlinus
Jan 15 2018 11:01
It's not telling me..Can't resolve all parameters for CookieService: (?)
UncertaintyP
@UncertaintyP
Jan 15 2018 11:06
How many classes do you inject in CookieService constructor?
ahmadlinus
@ahmadlinus
Jan 15 2018 11:25
I don't quite get you... Do you mean in how many classes of my own have I injected it? Or you mean how many classes I inject in the CookieService? In the case of the latter, I use https://www.npmjs.com/package/ngx-cookie-service and it's not an implementation of my own, so I use it as is...
UncertaintyP
@UncertaintyP
Jan 15 2018 11:27
// This service is based on the ng2-cookies package which sadly is not a service and does
// not use DOCUMENT injection and therefore doesn't work well with AoT production builds
ahmadlinus
@ahmadlinus
Jan 15 2018 11:29
It was working well, it just broke recently.
so what does that statement above mean? What consequences does it have? And what do you suggest I do?
UncertaintyP
@UncertaintyP
Jan 15 2018 11:31
I dunno I don't use this package
look through their repo
ahmadlinus
@ahmadlinus
Jan 15 2018 11:43
I just submitted an issue... but I don't think it's sth wrong with their code