-
Notifications
You must be signed in to change notification settings - Fork 20
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
Using with NuxtIcon: At least one <template> or <script> is required in a single file component #83
Comments
please check the version of @storybook-vue/nuxt should be 0.2.0 , nuxt 3.8.1 |
Thanks @chakAs3 . I will check it out and get back to you. We are currently on upgrading to Nuxt 3.8.x but it might take a while due to some breaking changes... |
Hi @chakAs3 , we have upgraded to nuxt 3.9.1 and we still get the same error stating
versions:
|
Hi @lud-hu on working on this thanks for reporting this |
Thanks @chakAs3 ! After some more investigation in the last days, I've seen that it is caused by e.g. using the |
@chakAs3 Hello Please pay attention to this comment as well. storybookjs/storybook#21196 (comment) |
@chakAs3 cool, good to know! Is there any way I can test it? It seems like the mentioned branch is based on a very old one (0.1.5) and I don't know how to run it locally to test with the latest nuxt version. |
Still seeing this issue in a blank repo containing |
hi @its-lewin it is not compatible with the new @nuxt/ui, i will need time to figure out the issue. |
NuxtIcon is declared global (https://github.com/nuxt-modules/icon/blob/094a7f4db76902c95e855d13244a880c442e61c6/src/module.ts#L52) and thus this issue is a duplicate of #4 (which was just fixed). |
I just installed this extension in an existing project with
npx storybook-nuxt init
and it seems to run fine, but above the Storybook UI there is an error shown:Unfortunately I can't find any help in other issues here or on the web. I also don't understand why the globally available NuxtIcon component could throw this error even though the simple dummy component I use in Storybook is not even using it.
The text was updated successfully, but these errors were encountered: