maisano / react-router-transition

painless transitions built for react-router, powered by react-motion
http://maisano.github.io/react-router-transition/
MIT License
2.59k stars 138 forks source link

IE10 AnimatedSwitch fails with location being undefined or null #100

Closed marcelhageman closed 4 years ago

marcelhageman commented 6 years ago

It took the Array.find polyfill to make react-router-transition work with IE11, but IE10 still fails entirely. Unable to debug it in the IE10 developer tools I booted up IE11 and switched the compatibility to IE10, and then I saw this error:

image

_this.props is undefined.

If React still officially supports IE10 and IE11 then shouldn't react-router-transition do that, too? My project is heavily invested in this tool but we apparently forgot to verify it works in IE10/11. Our only short term solution is to strip it out entirely.

Unless there's a simple fix available, of course 😉

Any insights would be very welcome.