Skip to content

fix: when using glob with relative path get wrong component name#780

Closed
alt1o wants to merge 1 commit intounplugin:mainfrom
alt1o:main
Closed

fix: when using glob with relative path get wrong component name#780
alt1o wants to merge 1 commit intounplugin:mainfrom
alt1o:main

Conversation

@alt1o
Copy link
Copy Markdown

@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
@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

@caocos
Copy link
Copy Markdown

caocos commented Jan 13, 2026

image image see the PR: https://github.com//pull/903

@alt1o alt1o closed this Mar 9, 2026
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.

2 participants