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]: rsdoctor/rspack-plugin compile error when use antd-mobile date-picker component #541

Open
VincentChris opened this issue Aug 29, 2024 · 2 comments
Assignees
Labels
🐞 bug Something isn't working

Comments

@VincentChris
Copy link

Version

System: Mac os m2
Node: 18.16.0
pnpm: 8.15.8
antd-mobile: 5.27.1

Details

Rsbuild v1.0.1-beta.11

info @rsdoctor/rspack-plugin enabled.
● web ━━━━━━━━━━━━━━━━━━━━━━━━━ (100%) emitting after emit module /Users/.../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/antd-mobile/es/components/date-picker/date-picker.css transform has error: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:399:5)
at Function.from (node:buffer:339:9)
at appendModuleData (/Users/.../node_modules/.pnpm/@RSdoctor+core@0.3.11_@rspack[email protected]/node_modules/@rsdoctor/core/dist/build-utils/build/module-graph/webpack/transform.js:129:166)
at async Promise.all (index 374)
at async appendModuleGraphByCompilation (/Users/.../node_modules/.pnpm/@RSdoctor+core@0.3.11_@rspack[email protected]/node_modules/@rsdoctor/core/dist/build-utils/build/module-graph/webpack/transform.js:174:5)
at async Object. (/Users/.../node_modules/.pnpm/@RSdoctor+core@0.3.11_@rspack[email protected]/node_modules/@rsdoctor/core/dist/inner-plugins/plugins/ensureModulesChunkGraph.js:60:28) {
code: 'ERR_INVALID_ARG_TYPE'
}

Reproduce link

no

Reproduce Steps

1、rsbuild create project
2、add rs doctor plugin
3、add antd-mobile
4、use antd-mobile
5、pnpm run RSDOCTOR=true rsbuild build script

@VincentChris VincentChris added the 🐞 bug Something isn't working label Aug 29, 2024
@chenjiahan
Copy link
Member

@easy1090 cc

@easy1090
Copy link
Collaborator

Got this , I'll check this error.

@chenjiahan chenjiahan transferred this issue from web-infra-dev/rsbuild Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants