ReferenceError: “Promise” is not defined””
IE does not support promise solutions
//import
<script src = "https://cdn.polyfill.io/v2/polyfill.min.js"> </script>
//or
<script type="text/javascript" src ="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6"></script>
Promise does not support iE
VUE project
(1) cnpm install –save babel-polyfill
(2) Add code require(“babel-polyfill”) in webpack.base.conf.js
(3) Add the code import “babel-polyfill” in main.js;
React project
(1) cnpm install –save babel-polyfill
(2) Add the code import “babel-polyfill” in the entry file (app.js/router.js);