昨天运营报了一个问题,之前一直正常运行的React项目突然页面访问不了了,通过排查发现页面报错了,错误如下:
Uncaught TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported.
at Object.setValueForStyles (index.js?t=:82)
at m._updateDOMProperties (index.js?t=:83)
at mountComponent (index.js?t=:83)
at Object.mountComponent (index.js?t=:12)
at mountChildren (index.js?t=:83)
at m._createInitialChildren (index.js?t=:83)
at mountComponent (index.js?t=:83)
at Object.mountComponent (index.js?t=:12)
at f.performInitialMount (index.js?t=:82)
at f.mountComponent (index.js?t=:82)
我一头雾水,这不对啊之前线上一直是稳定工作的呀,怎么突然报这个,尝试mac的Safati浏览器是正常访问的,谷歌和火狐最新版本会有访问不了的问题,基本锁定原因应该是浏览器升级的问题,去react的Git上看看有没有类似的Issue,果然不出所料,已经有人报了相同的Issue: