当前位置:   article > 正文

VUE项目报错Error Cannot find module ‘webpacklibRuleSet‘_解决_vue can not find module ruleset

vue can not find module ruleset

1、报错

Error: Cannot find module 'webpack/lib/RuleSet'
  • 1

在第一个问题的时候还试过把node_modules文件夹和package-lock.json文件删除然后再npm install,不知道有没有用,一起做个笔记把
解决方案:
https://segmentfault.com/q/1010000012177571/a-1020000012180629
底下的评论

2、执行完之后运行报错

Error: Rule can only have one resource source (provided resource and test +
  • 1

解决方案:
https://blog.csdn.net/weixin_40643648/article/details/109444867
重装webpage

3、执行之后报错

These dependencies were not found:
@videojs/vhs-utils/dist/byte-helpers in ./node_modules/video.js/dist/video.es.js
@videojs/vhs-utils/dist/containers in ./node_modules/video.js/dist/video.es.js
  • 1
  • 2
  • 3

解决方案:
百度发现错误是缺少依赖,于是直接

npm install 
yarn run server
  • 1
  • 2
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号