Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"Invalid icon name" warnings #357

@mergehez

Description

@mergehez

@iconify/tailwind gives "Invalid icon name: ..." every time vite runs.

example output:

Invalid icon name: "${IconifyIcon}"
Invalid icon name: "dashicons--undo"
Invalid icon name: "mdi--remove"

The first one is from a helper method I created:

export type IconifyIconPrefixed = `icon-[${IconifyIcon}]`;

the other two are from comments:

<!--    <span class="icon icon-[dashicons&#45;&#45;undo] text-base"></span>-->

to solve the second one I once opened a PR, which helped me figure out the warning comes from comments in which dashes are encoded by PhpStorm. Jetbrains team haven't solved this bug yet.

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