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 after migration to Angular 9 #122

Closed
ghost opened this issue Jul 1, 2020 · 4 comments
Closed

Error after migration to Angular 9 #122

ghost opened this issue Jul 1, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 1, 2020

Do you know how to fix this issue?

ERROR in node_modules/ngx-wig/lib/ngx-wig.component.d.ts:40:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 1 type argument(s).

40 static ɵfac: i0.ɵɵFactoryDef<NgxWigComponent, never>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ngx-wig/lib/ngx-wig.component.d.ts:41:18 - error TS2314: Generic type 'ɵɵComponentDefWithMeta' requires 6 type argument(s).

41 static ɵcmp: i0.ɵɵComponentDefWithMeta<NgxWigComponent, "ngx-wig", never, { "content": "content"; "placeholder": "placeholder"; "buttons": "buttons"; "disabled": "disabled"; }, { "contentChange": "contentChange"; }, never, never>;

@bampakoa
Copy link
Collaborator

bampakoa commented Jul 1, 2020

@MinchoMIlev could you please share more details? When do you get this error? How do you use the library? Setting up a Stackblitz demo or some other means would be more than helpful.

@minchopm
Copy link

minchopm commented Jul 1, 2020

I am getting this issue during compile time when I am building the app with Angular Ivy compiler.
Tested with version 9.1.0 and 9.0.0 - same result
few weeks ago I was using v ^8.0.0 with angular 9 and it was working fine.
when I serve the app there is no such kind of issue.
the case is this one:
properly injected the: NgxWigModule into imports[] of @NgModule

<ngx-wig [formControl]="text">

@bampakoa
Copy link
Collaborator

bampakoa commented Jul 3, 2020

@minchopm I could not replicate your issue locally. Could you please try to remove node_modules folder and npm install again? Also, make sure that you use Typescript 3.8.x

@ghost
Copy link
Author

ghost commented Jul 3, 2020

With Angular 9.1 the issue is not existing. Probably there is a bug in Angular 9.0. Thanks.

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

3 participants