IE 11 浏览器报  Promise 未定义的错误

  报错信息:   {description: "“Promise”未定义", message: "“Promise”未定义", name: "ReferenceEr...", number: -2146823279, stack: "ReferenceEr..."} 

  解决方案:

  1. npm install babel-polyfill --save   // 让 IE 支持 ES6
  2. 在 main.js 中 import "babel-polyfil"
  3. 如果使用了vuex,则在vuex的index.ts文件中也要  import "babel-polyfill",最好放在 import Vuex from 'vuex' 的前面

  参考链接 https://www.jianshu.com/p/6426e6aef3ae

相关文章:

  • 2021-07-28
  • 2021-04-06
  • 2021-05-12
  • 2022-12-23
  • 2021-09-05
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-09
  • 2021-10-13
  • 2021-12-14
  • 2021-11-05
  • 2022-12-23
  • 2021-06-08
相关资源
相似解决方案