Skip to content

@iconify/utils causes type errors when building in strict type mode #6791

@RSS1102

Description

@RSS1102

Description

I have stated the issue here iconify/iconify#388,

If I use yarn to compile my program, the following error will appear. I see that this problem was not fixed until >antfu/utils#50 @9.2.0

Image

and provided a fixed PR iconify/iconify#389.

--
He released a beta version, but I think it's not suitable for mermaid use at the moment, but I think it's worth keeping an eye on it, and when @iconify/utils is done with @3.0.0.
you can also use his recommended @iconify/utils@next.

Steps to reproduce

Wrong type in upstream antfu/utils#50

Screenshots

No response

Code Sample


Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions