执行webpack一直报错
来源:3-8 webpack-dev-server
从哪里跌倒还是在爬起来
2017-07-17
module.exports = config;
^
SyntaxError: Unexpected token .
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at requireConfig (/usr/local/lib/node_modules/webpack/bin/convert-argv.js:97:18)
at /usr/local/lib/node_modules/webpack/bin/convert-argv.js:104:17
at Array.forEach (native)
2回答
-
从哪里跌倒还是在爬起来
提问者
2017-07-17
照着原来的代码修改了,还是不对,跟上面的错误一样,都是一步步做过来的啊
liuyumingdeMacBook-Pro:mmall_fe liuyuming$ webpack
/Users/liuyuming/.Trash/mmall_fe/webpack.config.js:65
module.exports = config;
^
SyntaxError: Unexpected token .
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at requireConfig (/usr/local/lib/node_modules/webpack/bin/convert-argv.js:97:18)
at /usr/local/lib/node_modules/webpack/bin/convert-argv.js:104:17
at Array.forEach (native)
022017-07-17 -
Rosen
2017-07-17
配置文件里有语法错误,检查是不是多了少了个符号什么的
022017-07-17
相似问题