Skip to content

@nuxt/icon not working in histoire with mode "svg" #212

Description

@awacode21

I added @nuxt/icon to my project. In the project it is working fine but in histoire it is not working.
In histoire it is not able to render the stories that contain components that use @nuxt/icon.

On devtools console you always see the error:
Bildschirmfoto 2024-07-22 um 21 10 24

it doesn't matter if mode is css or svg, it doesn't matter if from iconify icon libs, global components or custom collections, it is simple not able to work with it. The error is always the same.

Here is a reproduction: https://stackblitz.com/edit/nuxt-starter-kckxy8
run the histoire to see the story not getting rendered and the console error in devtools.

Please help!

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