Heatmanofurioso / ngx-avatars

Spiritual successor of HaithemMosbahi's ngx-avatar
MIT License
16 stars 11 forks source link

Unable to update to version `1.6.1`: Can't bind to 'size' since it isn't a known property of `ngx-avatars` #54

Open tschaffter opened 1 year ago

tschaffter commented 1 year ago

I've been using this package (1.5.0) successfully for several month in an Angular v15 project. Today, I noticed the new release (one day old) and decided to give it a try:

yarn up ngx-avatars@1.6.1

Our Angular application then no longer build after this single change. Below is the code of our own avatar component that works as a wrapper around the avatar component provided by ngx-avatars. Building the app now generates the following errors:

Error: libs/openchallenges/ui/src/lib/avatar/avatar.component.html:1:14 - error NG8002: Can't bind to 'name' since it isn't a known property of 'ngx-avatars'.
1. If 'ngx-avatars' is an Angular component and it has 'name' input, then verify that it is included in the '@Component.imports' of this component.
2. If 'ngx-avatars' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.

1 <ngx-avatars [name]="name" [src]="src" [size]="size"></ngx-avatars>
               ~~~~~~~~~~~~~

  libs/openchallenges/ui/src/lib/avatar/avatar.component.ts:9:16
    9   templateUrl: './avatar.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AvatarComponent.

Error: libs/openchallenges/ui/src/lib/avatar/avatar.component.html:1:28 - error NG8002: Can't bind to 'src' since it isn't a known property of 'ngx-avatars'.
1. If 'ngx-avatars' is an Angular component and it has 'src' input, then verify that it is included in the '@Component.imports' of this component.
2. If 'ngx-avatars' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.

1 <ngx-avatars [name]="name" [src]="src" [size]="size"></ngx-avatars>
                             ~~~~~~~~~~~

  libs/openchallenges/ui/src/lib/avatar/avatar.component.ts:9:16
    9   templateUrl: './avatar.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AvatarComponent.

Error: libs/openchallenges/ui/src/lib/avatar/avatar.component.html:1:40 - error NG8002: Can't bind to 'size' since it isn't a known property of 'ngx-avatars'.
1. If 'ngx-avatars' is an Angular component and it has 'size' input, then verify that it is included in the '@Component.imports' of this component.
2. If 'ngx-avatars' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.

1 <ngx-avatars [name]="name" [src]="src" [size]="size"></ngx-avatars>
                                         ~~~~~~~~~~~~~

  libs/openchallenges/ui/src/lib/avatar/avatar.component.ts:9:16
    9   templateUrl: './avatar.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AvatarComponent.

** Angular Live Development Server is listening on 127.0.0.1:4200, open your browser on http://127.0.0.1:4200/ **

✖ Failed to compile.