Why IE 11 display blank page rendering react app

后端 未结 8 2007
借酒劲吻你
借酒劲吻你 2020-11-30 07:04

I have an issue with IE 11 and my react app. I use Webpack, babel and polyfill.io cdn and all is nice until rendering bundeled file, then it stops doing anything. Do you hav

8条回答
  •  臣服心动
    2020-11-30 07:54

    For anybody else who stumbles upon this problem,

    If react-app-polyfill doesn't work for you, try core-js instead.

    $ npm install core-js
    

    Make sure this is the first line in your src/index.js file:

    import 'core-js/stable'
    

    Also you might not see the fix when you are in development.

    For me the issue was solved only in the production version (react build)

提交回复
热议问题