Skip to content

Conversation

alt1o
Copy link

@alt1o alt1o commented Jul 4, 2024

Description

When using glob with relative path, get wrong component name for index.vue

Using pnpm init a monorepo project. Place UI components in /libs/ui, but run vite in project folder.

Project structure

floder
|--projects
     |--website
          |--vite.config.ts
|--libs
     |--ui
          |--Button
               |--index.vue

Config like this:

import Components from 'unplugin-vue-components/vite';

Components({
      globs: ['../../libs/ui/**/*.vue'],
}),

Got wrong component name: undefined.

@alt1o alt1o requested a review from antfu as a code owner July 4, 2024 09:18
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

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

Successfully merging this pull request may close these issues.

1 participant