[Vuejs]-Vue Module parse failed: Unexpected token

0👍

There is no guarantee this will help, but you can try with the following Babel configuration:

module.exports = {
  presets: [
    [
      '@vue/app',
      {
        exclude:
        [
          "@babel/plugin-transform-typeof-symbol",
          '@babel/plugin-transform-regenerator',
        ],
        modules: false
      }
    ]
  ],
  plugins:
  [
    "@babel/plugin-proposal-class-properties", // this seems to be the important one
  ]
} 

Leave a comment