Skip to content
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

global registration of components and use of pathPrefix: false throws an error #448

Closed
iboargun opened this issue Oct 16, 2023 · 4 comments

Comments

@iboargun
Copy link

If i want to use global components in nuxt.config.ts because of dynamic rendering of components i receive an error:

components: [ { path: '~/components', global: true, pathPrefix: false, } ]

The error that appears is:

The symbol "_hoisted_1" has already been declared
 import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue"
@Slimpak
Copy link

Slimpak commented Oct 18, 2023

I've also encountered this issue. As a temporary workaround, I've switched the framework from @storybook-vue/nuxt to @storybook/vue3-vite until the problem is resolved.

@tdekoning
Copy link

Having the same problem here

@ivandimovd
Copy link

I am encountering a similar issue in my current project, where I'm using 'nuxtjs/svg-sprite', which register a global component named 'svg-icon.' However, when I attempt to use this component within a Storybook template, it fails to display.

@tobiasdiez
Copy link
Collaborator

Global components should now work with #631.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants