赞
踩
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
把node_modules 删除之后,输入以下命令(一定这个顺序):
1 npm install vue-template-compiler -D
2 npm install
3 npm run dev
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。