ReactJS - SCRIPT1010: Expected identifier - Production build not running on IE11

前端 未结 4 1552
失恋的感觉
失恋的感觉 2020-12-10 04:13

I created a new project with create-react-app today. The production build is not running fine on IE11, the console shows following error:

SCRIPT1010: Expected

4条回答
  •  孤城傲影
    2020-12-10 04:47

    This is IE problem, not react framework.

    the problem that "default" is a reserved word on IE

    you can rename "default" function to a new name or use javascript function as :

    return e["default"]
    

提交回复
热议问题