[Vuejs]-Vue-loader giving me an unexpected token error

0👍

You probably need babel loader as well for your js:

loaders: [
  {
    test: /\.vue$/,
    loader: 'vue'
  },
  {
    test: /\.js$/,
    loader: 'babel',
    include: projectRoot,
    exclude: /node_modules/
  }

0👍

The error indicates your node.js, which you run your command with, don’t recognize the arrow function syntax (which is implemented in recent versions of node and browsers). You should update your node.js.

Leave a comment