HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on Angular 10

FranciscoKnebel opened this issue · 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