Vue CLI V3.x browsers are compatible

Vue CLI reported an error in Sogou and IE11 browsers

error message is:

Uncaught SyntaxError: Unexpected token.

is this a babel configuration problem? The default babel.config.js configuration file content is

module.exports = {
  presets: [
    "@vue/app"
  ]
}

how can I solve this problem? babel.config.js how to configure it?

Oct.23,2021

clipboard.png

clipboard.png


  • is mainly caused by ES6 turning ES5 , the new version under node_modules webpack-dev-server/client is not compatible
  • solution: add

    to vue.config.js
      

    Hello. I'd like to ask you how this problem was finally solved

    .
Menu