1.IE下报错Unhandled promise rejection ReferenceError: “Promise”未定义
解决:
-
npm i babel-polyfill -S
, - 在main.js中引用babel-polyfill
import 'babel-polyfill'
2.上步骤后继续报错polyfill-eventsource added missing EventSource to window
解决:
npm i event-source-polyfill -S
- 在main.js中
babel-polyfill
后继续引用import 'event-source-polyfill'
注:本文内容来自互联网,旨在为开发者提供分享、交流的平台。如有涉及文章版权等事宜,请你联系站长进行处理。