ngx-utils / cookies

Manage your cookies on client and server side (Angular Universal)
MIT License
39 stars 27 forks source link

Error during build Generic type 'ɵɵFactoryDef' requires 2 type argument(s). #20

Open kamilogerto2 opened 4 years ago

kamilogerto2 commented 4 years ago

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;

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;


`

It's possible to upgrade to newest version?
manueltg89 commented 4 years ago

Same error for me.

mfsenturk commented 4 years ago

I have the same issue.

natqe commented 4 years ago

same here

junekpavel commented 4 years ago

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

kamilogerto2 commented 4 years ago

Hey guys. Due to time - I changed lib to ngx-cookie-service and it works perfectly. cc @manueltg89 @mfsenturk @natqe @junekpavel

junekpavel commented 4 years ago

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.

kamilogerto2 commented 4 years ago

@junekpavel For now we are using cookies only on the frontend side - that's why probably I didn't detect that :/

Spawnrad commented 4 years ago

same error no news?

devangptechuz commented 4 years ago

same error in angular 9.1.0

Parsa-Sedigh commented 3 years ago

have same error angular v10.1.0

matimumbino commented 3 years ago

I deleted the node_modules and reinstall, and everything was back to normal.