Skip to content

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

Open
@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
  • Read the Contributing Guide.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions