Skip to content

项目目录存在英文括号(),AutoComponents本地运行异常 #822

@LJS-Y

Description

@LJS-Y

Describe the bug

项目目录存在英文括号(),AutoComponents本地运行异常

import AutoComponents from 'unplugin-vue-components/rspack';
AutoComponents({
    // 自动加载组件的目录配置,默认的为 'src/components'
    dirs: ['src/components'],
    // 组件支持的文件后缀名
    extensions: ['vue', 'jsx', 'tsx'],
    dts: false,
    resolvers: [
      ElementPlusResolver({
        importStyle: 'scss',
      }),
    ],
  }),

src/components组件无法自动加载。

Reproduction

项目(北京)/web

System Info

rsbuild构建vue3项目。

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
    Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
    Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
    The provided reproduction is a minimal reproducible of the bug.

Activity

added a commit that references this issue on Feb 28, 2025
27c0320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @LJS-Y

      Issue actions

        项目目录存在英文括号(),AutoComponents本地运行异常 · Issue #822 · unplugin/unplugin-vue-components