mironov / react-redux-loading-bar

Loading Bar (aka Progress Bar) for Redux and React
https://mironov.github.io/react-redux-loading-bar/
MIT License
936 stars 93 forks source link

Facing following issue while using 'react-redux-loading-bar' #95

Closed dipak-marathe closed 5 years ago

dipak-marathe commented 5 years ago

loading_bar.js:237 Uncaught TypeError: Cannot read property 'default' of undefined at mapStateToProps (loading_bar.js:237) at computeStateProps (connect.js:60) at Connect.updateStatePropsIfNeeded (connect.js:106) at Connect.render (connect.js:209) at ReactCompositeComponent.js:793 at measureLifeCyclePerf (ReactCompositeComponent.js:73) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:792) at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:819) at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:359) at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:2

mironov commented 5 years ago

@dipak-marathe Hi, I think we spoke over the email.

It seems that Redux store is not available to the Loading Bar. Please make sure that you wrap your components in somewhere in the tree. If possible, please consider creating a repo that reproduces the problem.

I'm going to close the issue for now. Feel free to reopen it if you have more details.