uni-app Error: Cannot find module ‘webpack/lib/RuleSet‘

ERROR  Error: Cannot find module 'webpack/lib/RuleSet'
Require stack:
- E:\workspace\fronttest\my-project\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js
- E:\workspace\fronttest\my-project\node_modules\@dcloudio\vue-cli-plugin-uni\index.js
- E:\workspace\fronttest\my-project\node_modules\@vue\cli-service\lib\Service.js
- E:\workspace\fronttest\my-project\node_modules\@vue\cli-service\bin\vue-cli-service.js
Error: Cannot find module 'webpack/lib/RuleSet'
Require stack:
- E:\workspace\fronttest\my-project\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js
- E:\workspace\fronttest\my-project\node_modules\@dcloudio\vue-cli-plugin-uni\index.js
- E:\workspace\fronttest\my-project\node_modules\@vue\cli-service\lib\Service.js
- E:\workspace\fronttest\my-project\node_modules\@vue\cli-service\bin\vue-cli-service.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._resolveFilename (E:\workspace\fronttest\my-project\node_modules\module-alias\index.js:49:29)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (E:\workspace\fronttest\my-project\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)

(未解决,仅作记录)

node版本:16.12.0

你可能感兴趣的:(vue.js,webpack,javascript)