-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find "store" in either the context or props #22
Comments
Have you seen https://github.com/jplayer/react-jPlayer-examples? |
@MartinDawson Yes I have seen this and implement it. index.js
// If you want your app to work offline and load faster, you can change store.js const store = createStore(RootReducer, applyMiddleware(thunk)); export default store;` rootReducer.js const RootReducer = combineReducers({ }); export default RootReducer;` Player.js `import React from 'react'; const jPlayerOptions = { const jPlaylistOptions = { initializeOptions(jPlayerOptions, jPlaylistOptions); const FooterPlaylist = () => (
I have used it before in one of my project and it is working there but now it is giving me this above error. |
I am using create-react-app and create a fresh project and then used the example given here still getting same error. Could you please try by create a fresh app and try the example. I want to play audio and for that I used both audio as well as multiple example but getting same error. |
I have tried implementing it into a symfony react and am getting the same error: react-dom.development.js:16013
browser.js:38
Other react components are working fine. I was stuck at this thinking that I was doing something wrong but seems like this may be a valid bug. I am currently using: https://github.com/jplayer/react-jPlayer-examples/tree/master/jPlayers/LivePlayer Any help would be highly appreciated. |
Here is the code player.js
livePlayer.jsx
Would love to make this work. Otherwise would be forced to use jquery version. Thanks, |
@rahulppatidar @digitalray @MartinDawson Please check version of react-redux. You should be getting these issues with react-redux version |
@singhjagmohan1000 thanks a lot! This solved my issue. The version of react-redux that I had was 6.0.0 and downgrading to 5.0.7 did the trick. |
If anyone wants to submit pull requests for a fix up to 6.x and add a peer
dependency I will accept.
Or just add a peer dep to 5.x
…On Fri, 1 Mar 2019 at 20:09, Sarkis ***@***.***> wrote:
@singhjagmohan1000 <https://github.com/singhjagmohan1000> thanks a lot!
This solved my issue. The version of react-redux that I had was 6.0.0 and
downgrading to 5.0.7 did the trick.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOVY27AAjM7jgN8lBw_CDSdMfwJHIyxRks5vSYkOgaJpZM4ZaLvT>
.
|
Hi,
I'm getting this error.
Could not find "store" in either the context or props of "Connect(withProps(withHandlers(withContext(lifecycle(JPlaylist)))))". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(withProps(withHandlers(withContext(lifecycle(JPlaylist)))))".
Please help me to resolve this error.
Thanks.
The text was updated successfully, but these errors were encountered: