Vue project ie11 reported an error. Es6 is not compatible.

clipboard.png

problem description

the environmental background of the problems and what methods you have tried

webpack.base.conf.js already has babel related configuration

entry: {
    app: ["babel-polyfill", "./src/main.js"]
  },

in accordance with the guidance of the official website of vue, the compilation of node_modules has been added

{
        test: /\.js$/,
        loader: "babel-loader",
        exclude: file => (
          /node_modules/.test(file) &&
          !/\.vue\.js/.test(file)
        )
      }

try for a long time, but it still doesn"t work. Ask God for advice!

Apr.07,2021

path change this, try it?

app: ['./node_modules/babel-polyfill/dist/polyfill.js','./src/main.js']
The

problem has been solved. Thank you


this article is very complete and will help you
vue project compatible with IE11

.
Menu