简体   繁体   English

React.JS没有在IE11中呈现新视图

[英]React.JS not rendering new views in IE11

I have a React project I am working on and everything has been going great. 我有一个正在从事的React项目,一切都进行得很顺利。 However when I tried to test my site in IE11 I get this rendering issue. 但是,当我尝试在IE11中测试我的网站时,出现此渲染问题。 It will have no problem rendering the intial home page, but when I try to click a link to see a different view I get this error: 呈现初始首页不会有问题,但是当我尝试单击链接以查看其他视图时,出现此错误:

Unable to get property 'getNativeNode' of undefined or null reference

and the error happens here 错误发生在这里

getNativeNode: function (internalInstance) {
     return internalInstance.getNativeNode();
}

I am trying to figure out why I am getting this issue and also how to resolve it. 我试图弄清楚为什么我遇到这个问题以及如何解决它。 I see quite a bit of IE11 issues with react online but havent found a solution for my issue so far. 我看到很多IE11问题都可以在线响应,但是到目前为止还没有找到解决我问题的方法。 I am current using no polyfills or anything for IE yet, so hopefully its just a matter a polyfill. 我目前尚未使用IE的polyfill或任何东西,所以希望它只是一个polyfill的问题。

I had this same issue in my application. 我的应用程序中有同样的问题。 Internet Explorer has an ongoing issue with the HTTP Cache. Internet Explorer的HTTP缓存存在持续性问题。

I resolved it by setting cache: true in my webpack entry array. 我通过在Webpack条目数组中设置cache: true来解决它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM