rsbuild icon indicating copy to clipboard operation
rsbuild copied to clipboard

[Bug]: Window system compilation error Cannot find module 'webpack/lib/rules/BasicEffectRulePlugin'

Open tongSir-shuai opened this issue 2 years ago • 5 comments

Version

System: OS: Windows 11 10.0.22631 CPU: (8) x64 12th Gen Intel(R) Core(TM) i3-12100 Memory: 1.77 GB / 15.78 GB Browsers: Edge: Chromium (128.0.2739.42) Internet Explorer: 11.0.22621.3527 npmPackages: @rsbuild/core: ^1.0.1-beta.6 => 1.1.0 @rsbuild/plugin-node-polyfill: ^1.2.0 => 1.2.0 @rsbuild/plugin-sass: ^1.0.1-beta.6 => 1.1.0 @rsbuild/plugin-vue2: ^1.0.1-beta.6 => 1.0.1

Details

Image I tried on several computers, but none of them worked. They all reported the same error. The node version is 16. How can I solve this problem?

Reproduce link

https://gitee.com/An_ordinary_day/rspack_test

Reproduce Steps

npm i && npm run dev

tongSir-shuai avatar Nov 08 '24 09:11 tongSir-shuai

webpack is vue-loader's peerDeps, it looks like you should install webpack.

9aoy avatar Nov 11 '24 04:11 9aoy

webpack is vue-loader's peerDeps, it looks like you should install webpack.

What is the specific reason? Why doesn't the Mac system need to be installed separately? Does Windows need to be installed? How troublesome is that? Is there a solution?

tongSir-shuai avatar Nov 12 '24 01:11 tongSir-shuai

webpack is vue-loader's peerDeps, it looks like you should install webpack.

There is another question. After packaging, all the styles are gone in the production environment. What is the reason?

tongSir-shuai avatar Nov 12 '24 03:11 tongSir-shuai

webpack 未安装,或者webpack 低于 5.0 版本,需要升级新版本

wllcyg avatar Nov 12 '24 08:11 wllcyg

After packaging, all the styles are gone in the production environment. What is the reason?

As this is an independent question, you can create a new issue and provide a reproduction repo, thanks.

chenjiahan avatar Nov 13 '24 06:11 chenjiahan