Skip to content

string cannot be converted to number error, but cast doesn't work then #808

@AaronWeber53

Description

@AaronWeber53

Having an issue with version 2.2.0 in angular 17. When I set [width]=400 nothing happens as it doesn't actually set the information for the width.

Image

If I update the imported package to take number | any, and do width="400" then it seems to work fine. but compiler gets very mad at that since a string cannot be a number. Is there something that I am missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions