vue项目问题整理

1.IE下报错Unhandled promise rejection ReferenceError: “Promise”未定义

解决:

  1. npm i babel-polyfill -S
  2. 在main.js中引用babel-polyfill import 'babel-polyfill'

2.上步骤后继续报错polyfill-eventsource added missing EventSource to window

解决:

  1. npm i event-source-polyfill -S
  2. 在main.js中babel-polyfill后继续引用 import 'event-source-polyfill'
    原文作者:Cheng
    原文地址: https://segmentfault.com/a/1190000012699079
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞