nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.45k stars 383 forks source link

Library is not compatible with storybook #369

Open Codeus3262 opened 11 months ago

Codeus3262 commented 11 months ago

Version

@nuxthq/ui: v2.4.0 nuxt: v3.6.1 storybook: v7.0.24

Steps to reproduce

  1. Install the component library
  2. Install Storybook along with the Nuxt plugin for Storybook
  3. Attempt to utilize the components from the library
  4. Notice missing styles
  5. Observe that dependencies such as NuxtLink, which are imported from the UI library, are not found (Note: NuxtLink works as expected when used within a standard component)

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.

benjamincanac commented 11 months ago

Could you please provide a reproduction?

zola33dsf commented 9 months ago

I can confirm too that the library does not work with storybook..

benjamincanac commented 8 months ago

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?

zola33dsf commented 8 months ago

@benjamincanac I'm using this library : https://github.com/storybook-vue/storybook-nuxt I've posted an issue today

SilasNiewierra commented 8 months ago

Same here using https://storybook.nuxtjs.org/

benjamincanac commented 8 months ago

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.

TiBianMod commented 6 months ago

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*

benjamincanac commented 6 months ago

Yet no one has provided a reproduction or an actual error of what is not working exactly.

TiBianMod commented 6 months ago

I will prepare later a reproduction repo

TiBianMod commented 6 months ago

@benjamincanac I have prepared the reproduction repo for you to test

Please read the Readme

TiBianMod commented 6 months ago

@benjamincanac we have any news, from where the issue is coming?

benjamincanac commented 6 months ago

This is indeed not working at all, there are errors about:

Are we sure this module is done?

TiBianMod commented 6 months ago

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

itslewin commented 6 months ago

Did anybody find a workaround to use NuxtUI with Storybook?

zola33dsf commented 4 months ago

Any updates? I still can't use it with storybook..

memtech3 commented 3 months ago

I'm still experiencing this issue as well

alexanderringor commented 2 weeks ago

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?

cain commented 4 days ago

Still having this issue