Webpack: Module build failed: SyntaxError: Unexpected token { on fresh install

Created on 22 Mar 2017  路  7Comments  路  Source: vuejs-templates/webpack

ERROR in ./~/css-loader?sourceMap!./~/vue-loader/lib/style-compiler?{"id":"data-v-44de71e8","scoped":false,"hasInlineConfig":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue
Module build failed: 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 loadLoader (/Users/zhopeng/UI/simple1/node_modules/loader-runner/lib/load

Most helpful comment

Using Node 6 instead of 4 helped me.

All 7 comments

Same here.
2017-03-22 5 21 34

same with me

Refer to https://github.com/vuejs-templates/webpack/issues/619 , keep vue-loader to 11.1.4;

It still does not work

Thanks keeping "vue-loader": "11.1.4", worked for me on this fresh install :)

Using Node 6 instead of 4 helped me.

Same here.

Was this page helpful?
0 / 5 - 0 ratings