「react-router-redux」カテゴリーアーカイブ

【react-router-redux】解決!「TypeError: Cannot read property 'object' of undefined」

最近Joinした現場でこのような「TypeError: Cannot read property 'object' of undefined」エラーが出て困っていたらしく
解決したので同じ悩みでyarnを上げれないとかバージョンを変更できない方のために書きます

結論(resolve)
update react-router-redux
react-router-reduxのバージョンをあげる

【react-router-redux】解決!「TypeError: Cannot read property 'object' of undefined」
【react-router-redux】解決!「TypeError: Cannot read property 'object' of undefined」

https://github.com/reactjs/react-router-redux/issues/348#issuecomment-287006948

現在(2018/2/3)ここで言われているようにreact-routerが16に対応しているのがv3で記述を大きく変更することになります。

既存のをv4からv3に変更するのは辛いので
react-router-reduxの方のバージョンv5にすることで解決します

run
```
yarn add react-router-redux@next
```

ちょっと試してみてください。