Error while importing FirebaseAppProvider
See original GitHub issueVersion info
React: 16.3.1
Firebase: 8.1.1
ReactFire: 2.0.3
Steps to reproduce
- yarn add reactfire firebase
- import the library using:
import { FirebaseAppProvider } from 'reactfire'
Expected behavior
That it works
Actual behavior
Error: Attempted import error: 'apps' is not exported from 'firebase/app' (imported as 'firebase').
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Error: Cannot call useFirebaseApp unless your component is ...
I used Firebase app provider in index.jsx like this, and i solved: ReactDOM.render( <FirebaseAppProvider firebaseConfig={firebaseConfig}> ...
Read more >Reactfire v4 Sample - StackBlitz
A project based on react, firebase, react-dom and reactfire. ... import { doc, getFirestore } from 'firebase/. firestore';. import {. FirebaseAppProvider,.
Read more >How to use the firebase/app.initializeApp function in ... - Snyk
initializeApp examples, based on popular ways it is used in public projects. ... from 'prop-types' import { FirebaseAppProvider } from 'reactfire' import ......
Read more >ReactFire - Firebase Open Source
Plus, they automatically unsubscribe when your component unmounts. ... import { doc, getFirestore } from 'firebase/firestore'; import { FirebaseAppProvider, ...
Read more >Attempted import error: 'auth' is not exported from 'firebase/auth'
With version 9 things changed a bit for importing firebase, but there is no need to downgrade to a previous version, there is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re working on new release that supports Firebase v8, in the meantime please stay on Firebase v7.
Closing as we support v8 with 3.0.0-rc.0 and master & have started including a peerDep in the package.json