How to solve the error report in IE9/IE10 of the vue+axios project built by ue-cli

problem description

how to solve the problem that the vue+axios project built by ue-cli reported an error Unhandled promise rejection SyntaxError: syntax error in IE9/IE10? Google browser and edge browser are normal

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

the online method of installing babel-polyfill has also been tried, but it still doesn"t work. Ask for

Mar.29,2021

Link description

try this method


the landlord needs to install promise polyfill . The specific method is as follows:
1, install es6-promise

npm install es6-promise --save

2, under the global reference in the mian.js file

import 'es6-promise/auto'
Menu