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

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 this issue May 10, 2023 · 0 comments

Comments

@tschaffter
Copy link

tschaffter commented May 10, 2023

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:

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.
@tschaffter tschaffter changed the title Unable to update to version 1.6.1: Can't bind to 'size' since it isn't a known property of 'ngx-avatars' Unable to update to version 1.6.1: Can't bind to 'size' since it isn't a known property of ngx-avatars May 10, 2023
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

1 participant