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

[Bug]: Rsbuild 使用 unplugin-auto-import 插件报错 #4759

Closed
94ashui opened this issue Nov 23, 2023 · 3 comments
Closed

[Bug]: Rsbuild 使用 unplugin-auto-import 插件报错 #4759

94ashui opened this issue Nov 23, 2023 · 3 comments
Assignees
Labels
rsbuild rsbuild related

Comments

@94ashui
Copy link

94ashui commented Nov 23, 2023

版本信息

System:
    OS: macOS 13.4.1
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Memory: 1.13 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 119.0.6045.159
    Safari: 16.5.2
  npmPackages:
    @rsbuild/core: ^0.1.0 => 0.1.0 
    @rsbuild/plugin-vue: ^0.1.0 => 0.1.0

问题详情

image image

在配置文件中添加配置后 rsbuild dev 报错

复现链接

https://github.com/94ashui/rsbuild-app

复现步骤

  1. pnpm install
  2. pnpm dev
@9aoy 9aoy self-assigned this Nov 23, 2023
@9aoy 9aoy transferred this issue from web-infra-dev/rsbuild Nov 23, 2023
@9aoy 9aoy removed their assignment Nov 23, 2023
@hardfist hardfist added the rsbuild rsbuild related label Nov 23, 2023
@9aoy
Copy link
Collaborator

9aoy commented Nov 23, 2023

Also reproducible in original rspack project (use rspack + html-webpack-plugin).

Minimize demo: https://github.com/9aoy/rspack-issue-reproduce/tree/main/rspack-vue

  • pnpm i
  • pnpm dev

@bvanjoi
Copy link
Collaborator

bvanjoi commented Nov 30, 2023

related to unjs/unplugin#354

@bvanjoi
Copy link
Collaborator

bvanjoi commented Jan 2, 2024

@rspack/[email protected] + [email protected] + [email protected] + [email protected] can work well:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rsbuild rsbuild related
Projects
None yet
Development

No branches or pull requests

4 participants