cookies
cookies copied to clipboard
Error during build Generic type 'ɵɵFactoryDef' requires 2 type argument(s).
Hey! :) It look like the "@angular/compiler-cli": "9.0.0" is not compatible with the newest version. I am recieving the error:
`ERROR in node_modules/@ngx-utils/cookies/src/cookies-options.service.d.ts:11:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).
11 static ɵfac: i0.ɵɵFactoryDef<CookiesOptionsService>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@ngx-utils/cookies/src/cookies.service.d.ts:22:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).
22 static ɵfac: i0.ɵɵFactoryDef<CookiesService>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@ngx-utils/cookies/src/browser/browser-cookies.service.d.ts:14:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).
14 static ɵfac: i0.ɵɵFactoryDef<BrowserCookiesService>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `
It's possible to upgrade to newest version?
Same error for me.
I have the same issue.
same here
Hi! I was having this issue too, so I finally decided to create port of this library. It works exactly same as this library, but it's builded as Angular library with Angular CLI v 9.1. So you can use it instead of this one to prevent errors like these.
I'll mark it as deprecated as soon as this library will be updated.
https://www.npmjs.com/package/ngx-utils-cookies-port
Hey guys. Due to time - I changed lib to ngx-cookie-service and it works perfectly. cc @manueltg89 @mfsenturk @natqe @junekpavel
Hey guys. Due to time - I changed lib to ngx-cookie-service and it works perfectly. cc @manueltg89 @mfsenturk @natqe @junekpavel
I've tried ngx-cookie-service
, but it doesn't work with SSR.
@junekpavel For now we are using cookies only on the frontend side - that's why probably I didn't detect that :/
same error no news?
same error in angular 9.1.0
have same error angular v10.1.0
I deleted the node_modules and reinstall, and everything was back to normal.