surmon-china/surmon.me

不支持IE吗

GitHdu opened this issue · 4 comments

我的nuxt项目一直报语法错误,babel-polyfill 要怎么引,求指点

具体错误具体分析,首先你要提供足够的信息:

  1. 什么样的错误,是否和 babel-polyfill 有关?
  2. babel-polyfill 是为了解决 “IE 兼容” 问题吗?
  3. 引入 babel-polyfill 本身很简单,入口 import 就可以了

具体错误具体分析,首先你要提供足够的信息:

  1. 什么样的错误,是否和 babel-polyfill 有关?
  2. babel-polyfill 是为了解决 “IE 兼容” 问题吗?
  3. 引入 babel-polyfill 本身很简单,入口 import 就可以了
HTML1300: 进行了导航。
10.0.2.2:3000
polyfill-eventsource added missing EventSource to window
%c🚀 Nuxt SSR Logs
   %c 
      background: #7f8c8d;
      border-radius: 0.5em;
      color: white;
      font-weight: bold;
      padding: 2px 0.5em;

SCRIPT1002: 语法错误
ads.6411bd9b.js (115,1)
%cerror 
      background: #c0392b;
      border-radius: 0.5em;
      color: white;
      font-weight: bold;
      padding: 2px 0.5em;
     ChunkLoadError: Loading chunk vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b failed.
(missing: http://10.0.2.2:3000/_nuxt/vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b.js)
   "%cerror"
   "
      background: #c0392b;
      border-radius: 0.5em;
      color: white;
      font-weight: bold;
      padding: 2px 0.5em;
    "
   {
      [functions]: ,
      __proto__: { },
      description: "",
      message: "Loading chunk vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b failed.
(missing: http://10.0.2.2:3000/_nuxt/vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b.js)",
      name: "ChunkLoadError",
      number: 0,
      request: "http://10.0.2.2:3000/_nuxt/vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b.js",
      stack: "ChunkLoadError: Loading chunk vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b failed.
(missing: http://10.0.2.2:3000/_nuxt/vendors.pages/about/index.pages/about/reward_unit.pages/ads/adventage_unit.pages/ads/index.pages/ads.6411bd9b.js)
   at Anonymous function (http://10.0.2.2:3000/_nuxt/runtime.js:179:14)
   at run (http://10.0.2.2:3000/_nuxt/commons.app.js:11072:13)
   at Anonymous function (http://10.0.2.2:3000/_nuxt/commons.app.js:11089:30)
   at flush (http://10.0.2.2:3000/_nuxt/commons.app.js:6778:9)",
      Symbol()_n.b6zc8tc16oy: undefined,
      Symbol()_o.b6zc8tc16oy: undefined,
      Symbol(foo)_p.b6zc8tc16oy: undefined,
      Symbol(react.element)_h.b6zc8tc16oy: undefined,
      type: "missing"
   }

%cinfo 
      background: #00BCD4;
      border-radius: 0.5em;
      color: white;
      font-weight: bold;
      padding: 2px 0.5em;
     Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
%cinfo 
      background: #00BCD4;
      border-radius: 0.5em;
      color: white;
      font-weight: bold;
      padding: 2px 0.5em;
     You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

Chrome功能都正常的,只有ie引入babel-polyfill会报错

请问这个问题解决了吗?

。。。讲道理 自己动手就解决呗 解决完提个PR出来不就好了