Skip to content
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

Video #19 #36

Open
Prasanna-Poonacha opened this issue May 28, 2020 · 2 comments
Open

Video #19 #36

Prasanna-Poonacha opened this issue May 28, 2020 · 2 comments

Comments

@Prasanna-Poonacha
Copy link

Trying to get all the projects from Firestore. When I use the below in the dashboard

firestoreConnect([
{collection: 'apps'}
])

I get the below error in the app

TypeError: Cannot read property 'firebase' of undefined
FirestoreConnect.componentWillMount
node_modules/react-redux-firebase/es/firestoreConnect.js:65
62 | _createClass(FirestoreConnect, [{
63 | key: 'componentWillMount',
64 | value: function componentWillMount() {

65 | var _store = this.store,
| ^ 66 | firebase = _store.firebase,
67 | firestore = _store.firestore;
68 |

@aashimgarg
Copy link

i am facing the same issue

@aashimgarg
Copy link

Trying to get all the projects from Firestore. When I use the below in the dashboard

firestoreConnect([
{collection: 'apps'}
])

I get the below error in the app

TypeError: Cannot read property 'firebase' of undefined
FirestoreConnect.componentWillMount
node_modules/react-redux-firebase/es/firestoreConnect.js:65
62 | _createClass(FirestoreConnect, [{
63 | key: 'componentWillMount',
64 | value: function componentWillMount() {

65 | var _store = this.store,
| ^ 66 | firebase = _store.firebase,
67 | firestore = _store.firestore;
68 |

i got an solution ... just degrade your react-redux package because react-redux-firebase is not compatible with v6.
just do it will work:-
npm i [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants