当前位置:   article > 正文

Vue启动如何解决构建模块问题_module build failed (from ./node_modules/vue-pdf/n

module build failed (from ./node_modules/vue-pdf/node_modules/worker-loader/

vue 启动Module build failed (from ./node_modules/vue-loader/lib/index.js)

Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: E:\cblhxwebtest\babel.config.js: Error while loading config - webpack is not defined
    at Object.<anonymous> (E:\cblhxwebtest\babel.config.js:6:9)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at readConfigJS (E:\cblhxwebtest\node_modules\@babel\core\lib\config\files\configuration.js:201:26)
    at cachedFunction (E:\cblhxwebtest\node_modules\@babel\core\lib\config\caching.js:33:19)
    at readConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\files\configuration.js:173:56)
    at findRootConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\files\configuration.js:148:16)
    at buildRootChain (E:\cblhxwebtest\node_modules\@babel\core\lib\config\config-chain.js:78:44)
    at loadPrivatePartialConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\partial.js:85:55)
    at Object.loadPartialConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\partial.js:110:18)
    at Object.<anonymous> (E:\cblhxwebtest\node_modules\babel-loader\lib\index.js:144:26)

 @ multi (webpack)-dev-server/client?http://192.168.2.186:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

把node_modules 删除之后,输入以下命令(一定这个顺序):

    1 npm install vue-template-compiler -D
    
    2 npm install
    
    3 npm run dev
  • 1
  • 2
  • 3
  • 4
  • 5

今天的网路真是蜗牛都要爬都要累死,真的是,快要疯掉,BUG不断,网络差劲,什么都欺负开发人员,忒难

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/450806
推荐阅读
相关标签
  

闽ICP备14008679号