-
Notifications
You must be signed in to change notification settings - Fork 475
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
TypeError: Object(...) is not a function #13
Comments
Have you found a solution for this? |
i have the same issue!...i could not solve it yet!...any help? |
Hey, did you find the solution? I have same error. |
So, I found the solution. You need the exact same version that shaun is using for react-redux-firebase and redux-firestore... I hope it will work. I will look for method that works on latest version but for now you can use this. |
ok thank you! |
Just tried cloning the git branch lesson-19 and running
|
Is there a solution available for those of us unable to revert to outdated versions of the dependencies? Up until this lesson I had been successfully converting everything to functional components, and other more up-to-date conventions, but lesson 18 has stumped me a bit (And based on youtube comments, a lot of others too!). |
I am facing a similar challenge, I have tried all above suggestions, but problem still persists. Please can someone help. |
Try reading the react-redux-firebase 2.. migration guide if you are using 3.. .That seems to be the problem.It uses a ReactReduxProvider kind of tag to get up and running. |
The problem is that in the current version v3.. these functions are no longer available. However, after much research on other pages and other issues on github on the similar topic, I understood a solution which was feasible to me! Follow this below lines of code if you're using firebase with redux and react along with Thunk! Index.js
rootReducer.js
Now to use the firebase that we just passed as props to all the nested components, we need to use a HOC called
How to Use withFirebase()Class Components / Statefull Components
Similary, for function/ stateless Components
Hope it clears any doubts! :)I got all this from the v3 migration guidelines and one of @prescottprue 's github issues (can't find it now lmao) |
i have got problem with createstoreWithFirebase!:) |
Do provide more details like code and dependencies along with the error. |
@Sanan4li i was breaking head for this. You really saved my day. Thanks alot!!!
|
does it work for you? for me the problem remains same just a bunch of new error are there. |
The version used in the tutorial is an older one. It is a react-redux-firebase v2.x.x coding pattern and you probably have v3.x.x installed. |
Thanks a lot this works properly |
Yes this worked for me |
Yes,It worked for me too! Thank you. |
from a youtube-comment (Ishwari Pandey) index.js
projectActions.js
|
Here's my solution Index.js import React from 'react'; const rrfConfig = { const store = createStore( const rrfProps = {
reportWebVitals(); Root Reducer import { combineReducers } from 'redux' const rootReducer =combineReducers({ }) export default rootReducer fbconfig export default firebase Project CreateAction |
Great job Brother 👍| I wasted too much time to resolve this problem but only this can help to resolve the problem |
You save my day buddy thanks |
I solved this problem by changing the firebase version: |
The text was updated successfully, but these errors were encountered: