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 component path problem #127

Closed
SadWood opened this issue Sep 1, 2021 · 0 comments
Closed

Global component path problem #127

SadWood opened this issue Sep 1, 2021 · 0 comments

Comments

@SadWood
Copy link
Contributor

SadWood commented Sep 1, 2021

vite.config.ts

    Components({
      transformer: 'vue3',
      dirs: ['src/components'],
      resolvers: [
        ElementPlusResolver(),
        HeadlessUiResolver(),
        IconsResolver({ componentPrefix: 'icon' }),
      ],
      dts: 'src/typings/components.d.ts',
    }),

Get some Global Components path like this:
Drawer: typeof import('./../../Users/xxxxxx/Git-Repository/vite-vue3/src/components/Drawer.vue')['default']

But when using vite-plugin-components, there is no such problem

@antfu antfu closed this as completed in 939f4ad Sep 1, 2021
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

1 participant