HaithemMosbahi/ngx-avatar

Error on Angular 10

FranciscoKnebel opened this issue · 1 comments

Error caught on ng build --prod with Angular 10.

ERROR in node_modules/ngx-avatar/lib/avatar.module.d.ts:4:50 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).
4     static forRoot(avatarConfig?: AvatarConfig): ModuleWithProviders;

Problem was solved with the Angular 9 migration https://github.com/HaithemMosbahi/ngx-avatar/pull/91/files#diff-017b69446dd3f277592d9b36c2593474.

Solved by changing package version to 4.0.0