“Object doesn't support this property or method” error in IE11

前端 未结 7 1039
野的像风
野的像风 2020-12-08 06:57

I am getting the error

Critical Error: Object doesn\'t support this property or method addeventlistener

while accessing the Info

相关标签:
7条回答
  • 2020-12-08 07:59

    We were also facing this issue when using IE version 11 to access our React app (create-react-app with react version 16.0.0 with jQuery v3.1.1) on the enterprise intranet. To solve it, i simply followed the directions at this url which are also listed below:

    1. Make sure to set the DOCTYPE to standards mode by making sure the first line of the master file is: <!DOCTYPE html>

    2. Force IE 11 to use the latest internal version by including the following meta tag in the head tag: <meta http-equiv="X-UA-Compatible" content="IE=edge;" />

    NOTE: I did not face the problem when using IE to access the app in development mode on my local machine (localhost:3000). The problem occurred only when accessing the app deployed to the DEV server on the company Intranet, probably because of some company wide Windows OS policy settings and/or IE Internet Options.

    0 讨论(0)
提交回复
热议问题