HearthSim / Joust

🍿 Hearthstone replays in your browser.
https://hearthsim.info/joust/
118 stars 20 forks source link

Warning spam: Cannot read property 'clientWidth' of undefined #135

Closed beheh closed 8 years ago

beheh commented 8 years ago

https://sentry.io/hearthsim/joust/issues/134177605/

TypeError: Cannot read property 'clientWidth' of undefined
  at getWidth (~/react-dimensions/index.js:24)
  at updateDimensions (~/react-dimensions/index.js:123)
  at updateDimensions (~/react-dimensions/index.js:133)
  at r (/static/bundles/replay_detail.07600472c051.js:1:22431)
beheh commented 8 years ago

This is an upstream issue with react-dimensions in combination with flexbox. The next major release of react-dimensions fully reworks this, but needs some work in order to integrate it.

beheh commented 8 years ago

Fixed by removing react-dimenions.