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
Error: Context from react-redux not found. If you are using react-redux v6 a v3.*.* version of react-redux-firebase is required. #11
Comments
If you look in comments on the vide, you can find the solution: Lasse Wenger |
I don't really think its a good idea to downgrade your version of "react-redux" to 5.1.1. Packages are updated for a reason, locking into an old version could potentially open you up to a number of issues, including security issues. The reason this issue is caused is explained here: prescottprue/react-redux-firebase#581 In order to fix this, you need to first use a version 3.X of "react-redux-firebase". At time of writing this is version Then, you need to replace Finally, you need to remove the
I do think it was a bit of a shame that Shaun chose to use "react-redux-firebase" and "redux-firestore", because it takes away some of the "under the hood" stuff when interacting with firebase, its not necessary and leads to issues like this one. However, I understand why he did and hopefully this isn't too hard to follow/this fixes this problem for some people. Could @iamshaunjp comment on this just to clarify this is what he would also recommend? |
@alex-r89 Would you mind posting the actual changes? I'm not quite following along. Thanks! |
It would be better if @iamshaunjp replied to this. Its his course and he chose to use |
Yes, hearing from the author would be the best course of action, but mine is research code so it doesn't have to be right, it just has to work. But thanks for the heads-up, I'll stop being curious about it and stick with the cheaper fix of updating to react-redux@^5.1.1. Thanks for the response. |
Hello Guys, you could take a look at this code pen of mine which has a working setup for the latest version of the libraries. https://codesandbox.io/s/8423o1m529 I didn't share the code here as it would take too much space and wouldn't make much sense. @iamshaunjp it would be great if you could take a glimpse at it too. |
Looks good @samsoul16 . You will also need to pass
|
@alex-r89 Yup, yes you have to add |
I've been running into issues now, after making those changes, with the create functionality. Error is 'firebase instance is not ready'. Any ideas guys? The last thing I want to do is roll back to a older version 😉 |
help me Error: Context from react-redux not found. If you are using react-redux v6 a v3.. version of react-redux-firebase is required. Please checkout the v3 migration guide: http://bit.ly/2SRNdiO |
this seems to fix it. replace your index.js with this. import React from 'react'; const store = createStore(rootReducer, compose(applyMiddleware(thunk.withExtraArgument({ getFirebase, getFirestore })))); const rrfConfig = { ReactDOM.render( // If you want your app to work offline and load faster, you can change |
@stuartverschoyle Amazing you got it to work! Can you explain more details what is it that allowed react-redux-firebase v3 to work with react-redux v7? |
hello, i still get this error...
any suggestion ? |
This is my index.js `import React from "react"; const rootElement = document.getElementById("root"); const store = createStore( const rrfConfig = { ReactDOM.render( and I get this error : Which isn't even close to what you guys are getting. |
@khgs2411 same issue for me... |
import React from 'react'; const store= createStore(rootReducer,compose(
ReactDOM.render( // If you want your app to work offline and load faster, you can change I am getting error:Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. at the provider |
I was following the video tutorial till 19th after that when I implemented the code I got this error. Will be really helpful if someone can help me out with this issue.
The text was updated successfully, but these errors were encountered: