storybook-vue / storybook-nuxt

Deprecated in favor of https://github.com/nuxt-modules/storybook/
https://github.com/nuxt-modules/storybook/
132 stars 20 forks source link

Bug with Global Component Setting in Config #57

Closed rezkileap closed 1 year ago

rezkileap commented 1 year ago

When I set the global component to true in the config, it's causing a bug and showing an error message.

[vite:vue] At least one <template> or <script> is required in a single file component.

What's weird is that this happens even when none of the components are empty. I tried even on a new project too. I'm not sure if it's related, but I've saw a similar problem with Storybook Vue Vite.

https://github.com/storybookjs/storybook/issues/20024

components: [ { global: true, path: '~/components', prefix: 'Mds', },

rezkileap commented 1 year ago

duplicate

usamatariqnetshore commented 1 year ago

any solution to this bug ?

rezkileap commented 1 year ago

no fix as right now but follow this issue thread instead https://github.com/storybook-vue/storybook-nuxt/issues/4