Open Codeus3262 opened 11 months ago
Could you please provide a reproduction?
I can confirm too that the library does not work with storybook..
It would be helpful to know what is your issue with Storybook, are you using https://github.com/storybook-vue/storybook-nuxt or https://github.com/nuxt-modules/storybook?
@benjamincanac I'm using this library : https://github.com/storybook-vue/storybook-nuxt I've posted an issue today
Same here using https://storybook.nuxtjs.org/
The @nuxtjs/storybook
module is a Nuxt 2 module, it is not compatible with Nuxt 3. I guess you should use https://github.com/storybook-vue/storybook-nuxt but its quite new.
will be really nice if we take the time and solve this issue of storybook and @nuxt/ui
and @nuxt/ui-pro
for the moment none of the storybook modules is working with @nuxt/ui*
Yet no one has provided a reproduction or an actual error of what is not working exactly.
I will prepare later a reproduction repo
@benjamincanac I have prepared the reproduction repo for you to test
Please read the Readme
@benjamincanac we have any news, from where the issue is coming?
This is indeed not working at all, there are errors about:
At least one <template> or <script> is required in a single file component.
on nuxt-icon/dist/runtime/IconCSS.vue
NuxtLink
not being defined in the Link
componentA default value needs to be a function when your type is an object or array
on every component with class
and ui
props defaulting to undefined
(thrown by vue-docgen-plugin
)Are we sure this module is done?
after testing and testing again, the issue is coming from nuxt-icon
module
if we going to install nuxt-icon module without nuxt-ui
, we going to see exactly the same errors.
I added a branch for nuxt-icon, if you want you can give it a try
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/storybook", "nuxt-icon"],
});
to determine if the nuxt-ui
components working with storybook, the nuxt-icon
needs first to be fixed!!
issue related to storybook
and nuxt-icon
: https://github.com/nuxt-modules/icon/issues/77
Did anybody find a workaround to use NuxtUI with Storybook?
Any updates? I still can't use it with storybook..
I'm still experiencing this issue as well
any chance someone able to get this working now? there's been updates with storybook and nuxtui but none of it seem to have fix this issue?
Still having this issue
Version
@nuxthq/ui: v2.4.0 nuxt: v3.6.1 storybook: v7.0.24
Steps to reproduce
What is Expected?
The UI Library should seamlessly integrate with Storybook, allowing developers to extend and build custom applications effectively.
What is actually happening?
An error is encountered while trying to install the UI library into Storybook.