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

Minified react error 321 #100

Closed nagarajasr closed 4 years ago

nagarajasr commented 4 years ago

i'm getting a minified react error 321 - https://fb.me/react-invalid-hook-call when using default import LoadingBar if i switch to importing named export LoadingBar the error goes away but no loading bar is displayed. the rendered div is empty.

nagarajasr commented 4 years ago

because of the way i was bundling the application dependencies, i ended up having multiple copies of react in the final bundle which caused this issue. fixed the bundling configuration to resolve the issue. so even though npm ls react was showing only one version of react, the actual bundle had multiple copies.