-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find name 'NgcInitializeEvent' and 'NgcStatusChangeEvent' AND Cannot read property 'initialise' of undefined #2
Comments
Hi @Byloor Please for your future issues, provide the minimum info mentioned in the issue template (when creating it): angular-cli version, repro steps (which command of angular-cli produces the error,..) etc. This helps me help you faster! Concerning your error 1 , it almost like it could not found cookieconsent.js library. Please try this:
|
@tinesoft
And for the second error : i added |
I suspect the dependencies have not been installed correctly the 1st time. |
@tinesoft The way I resolved second error does not seem to be right as cookies status is not kept into account. |
I faced issue #1 because I'd skipped the dependency for insites' js |
Hi,
I would like to use ngx-cookie consent package in my angular 4 application(built with angular cli) . I do not have a systemjs file. Hence except that part , I followed each step as in the documentation . I am having 4 error messages
two errors with following message
Cannot read property 'initialise' of undefined
at NgcCookieConsentService.init (cookieconsent.service.js:53)
at new NgcCookieConsentService (cookieconsent.service.js:23)
at _createClass (core.es5.js:9532)
at createProviderInstance$1 (core.es5.js:9500)
at resolveNgModuleDep (core.es5.js:9485)
at NgModuleRef.get (core.es5.js:10577)
at resolveDep (core.es5.js:11080)
at createClass (core.es5.js:10933)
at createDirectiveInstance (core.es5.js:10764)
at createViewNodes (core.es5.js:12212)
Cannot find name 'NgcInitializeEvent'.
Cannot find name 'NgcStatusChangeEvent'.
Please help.
The text was updated successfully, but these errors were encountered: