HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
MIT License
236 stars 91 forks source link

Error on Angular 10 #108

Closed FranciscoKnebel closed 4 years ago

FranciscoKnebel commented 4 years ago

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;
FranciscoKnebel commented 4 years ago

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