Attempted import error: 'app' is not exported from 'firebase/app' (imported as 'firebase')
See original GitHub issue[REQUIRED] Describe your environment
- Operating System version: WSL2 Ubuntu_
- Browser version: Chrome 86.0.4240___
- Firebase UI version: 4.7.0_
- Firebase SDK version: 8.0.0___
[REQUIRED] Describe the problem
Attempted import error: ‘app’ is not exported from ‘firebase/app’ (imported as ‘firebase’)
`According to the update log of the firebase SDK (version 8.0.0), the way to import firebase SDK should be`
import firebase from 'firebase/app'
`instead of `
import * as firebase from 'firebase/app'
Steps to reproduce:
found when importing this package.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:27
- Comments:18 (3 by maintainers)
Top Results From Across the Web
Upgrade to Firebase JS 8.0.0: Attempted import error: 'app' is ...
Attempted import error : 'initializeApp' is not exported from 'firebase/app' (imported as 'firebase'). My import looks like this: import * as ...
Read more >[Solved] Attempted import error: 'firebase/app' does not ...
To Solve Attempted import error: 'firebase/app' does not contain a default export (imported as 'firebase') Error If You are using Version 9 then ......
Read more >Attempted import error: 'auth' is not exported from 'f...
If you got this error: Attempted import error: 'auth' is not exported from 'firebase/app'. try this import: import firebase from ...
Read more >[Solved]-How do I fix a Firebase 9.0 import error? "Attempted ...
[Solved]-How do I fix a Firebase 9.0 import error? "Attempted import error: 'firebase/app' does not contain a default export (imported as 'firebase')."-Reactjs.
Read more >[Problem Solving] ./src/firebase.js Attempted import error ...
[Problem Solving] ./src/firebase.js Attempted import error: 'firebase/app' does not contain a default export (imported as 'firebase').
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
Top Related Hashnode Post
No results found
Top GitHub Comments
I did the same thing as mentioned, but no change same error received.
./src/App.js Attempted import error: 'auth' is not exported from 'firebase'.
firebase --version
9.8.0firebase tools --version
9.8…0can you help me pls.
First of all I am new but I had the same error, reading a little documentation from the firebase v8 is no longer used
import * as firebase from “firebase/app”; import “firebase/auth”;
Currently fix the error with the following Sorry for my English;