14:40:48.359 项目 'tsdemo' 开始编译...
14:40:49.424 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
14:40:49.435 正在编译中...
14:40:49.887 ERROR Error: Cannot find module 'webpack/lib/RuleSet'
14:40:49.887 Require stack:
14:40:49.893 - D:\code\tsdemo\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js
14:40:49.899 - D:\code\tsdemo\node_modules\@dcloudio\vue-cli-plugin-uni\index.js
14:40:49.899 - D:\code\tsdemo\node_modules\@vue\cli-service\lib\Service.js
14:40:49.903 - D:\code\tsdemo\node_modules\@vue\cli-service\bin\vue-cli-service.js
14:40:49.906 Error: Cannot find module 'webpack/lib/RuleSet'
14:40:49.906 Require stack:
14:40:49.909 - D:\code\tsdemo\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js
14:40:49.913 - D:\code\tsdemo\node_modules\@dcloudio\vue-cli-plugin-uni\index.js
14:40:49.914 - D:\code\tsdemo\node_modules\@vue\cli-service\lib\Service.js
14:40:49.919 - D:\code\tsdemo\node_modules\@vue\cli-service\bin\vue-cli-service.js
14:40:49.919 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
14:40:49.925 at Function.Module._resolveFilename (D:\code\tsdemo\node_modules\module-alias\index.js:49:29)
14:40:49.928 at Function.Module._load (internal/modules/cjs/loader.js:725:27)
14:40:49.929 at Module.require (internal/modules/cjs/loader.js:952:19)
14:40:49.932 at require (internal/modules/cjs/helpers.js:88:18)
14:40:49.932 at Object.<anonymous> (D:\code\tsdemo\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js:4:17)
14:40:49.937 at Module._compile (internal/modules/cjs/loader.js:1063:30)
14:40:49.940 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
14:40:49.944 at Module.load (internal/modules/cjs/loader.js:928:32)
14:40:49.944 at Function.Module._load (internal/modules/cjs/loader.js:769:14)
赵永强
- 发布:2021-07-26 14:40
- 更新:2022-08-11 17:08
- 阅读:1019
用cli创建typescript项目无法启动
分类:uni-app
6 个回复
赵永强 (作者) - 前端老菜鸟
没人解答一下吗
吴克
非typescript项目也报这个webpack/lib/RuleSet
DCloud_UNI_FXY
将webpack降级到4试试
吴克
已经强制安装webpack4了
会报TypeError: Cannot convert undefined or null to object
2022-02-18 16:28
4***@qq.com
遇到同样问题,降级webpack后提示Cannot convert undefined or null to object
topeam
遇到同样问题,请问怎么解决啊
DCloud_UNI_GSQ
https://ask.dcloud.net.cn/question/135817