Open awacode21 opened 1 month ago
Start a new pull request in StackBlitz Codeflow.
You can install nuxt-icon@0.6.10
instead of @nuxt/icon
and update the modules
in nuxt.config.ts
.
It seems like @nuxt/icon
doesn't work with Histoire
since version 1.0.0.
https://stackblitz.com/edit/nuxt-starter-gp2mej?file=nuxt.config.ts
@xiaosasori thanks for the workaround. Do you know if custom collections were already working in 0.6.10 with same syntax? cause i don't get it running with 0.6.10
@awacode21 it's impossible because customCollections
is a new feature introduced in version 1.0.0
.
Describe the bug
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:
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.
Reproduction
https://stackblitz.com/edit/nuxt-starter-kckxy8
run the histoire to see the story not getting rendered and the console error in devtools.
System Info
Used Package Manager
npm
Validations