Skip to content
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 during build Generic type 'ɵɵFactoryDef' requires 2 type argument(s). #20

Open
kamilogerto2 opened this issue Apr 16, 2020 · 11 comments

Comments

@kamilogerto2
Copy link

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;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
Copy link

Same error for me.

@mfsenturk
Copy link

I have the same issue.

@natqe
Copy link

natqe commented Apr 18, 2020

same here

@junekpavel
Copy link

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
Copy link
Author

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

@junekpavel
Copy link

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
Copy link
Author

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

@Spawnrad
Copy link

same error no news?

@devangptechuz
Copy link

same error in angular 9.1.0

@Parsa-Sedigh
Copy link

have same error angular v10.1.0

@matimumbino
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants