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

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

Open
awacode21 opened this issue Jul 22, 2024 · 3 comments · Fixed by #225
Open

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

awacode21 opened this issue Jul 22, 2024 · 3 comments · Fixed by #225

Comments

@awacode21
Copy link

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!

@awacode21
Copy link
Author

awacode21 commented Jul 29, 2024

Another user confirmed here: histoire-dev/histoire#746 (comment) that it is broken since @nuxt/icon version 1.0.0

[email protected] is the last version which was working in histoire. So i guess it is a bug that came up with the refactor

@awacode21
Copy link
Author

awacode21 commented Jul 30, 2024

@antfu this is NOT fixed for mode="svg" .. the linked merged fix only fixes it for the css version but when using mode svg it is still not working. Please reopen the issue as not fixed.

@awacode21 awacode21 changed the title @nuxt/icon not working in histoire @nuxt/icon not working in histoire with mode "svg" Jul 30, 2024
@antfu antfu reopened this Jul 30, 2024
@zzy-life
Copy link

I also encountered a similar problem. I can only use it normally by specifying mode="svg", but this is not a fundamental solution.

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

Successfully merging a pull request may close this issue.

3 participants