Today We are Going To Solve export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ in Vuejs. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error?
- How to Fix export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error?
To Fix export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error just Add /compat. You can solve this error by just importing the firebase. This is for Firebase Web SDK version 9.Here you have to just add /compat while importing firebase. Just import this three thing to solve the error.
import firebase from 'firebase/compat/app'; import 'firebase/compat/auth'; import 'firebase/compat/firestore';
- export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’
To Fix export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error just Add /compat. You can solve this error by just importing the firebase. This is for Firebase Web SDK version 9.Here you have to just add /compat while importing firebase. Just import this three thing to solve the error.
import firebase from 'firebase/compat/app'; import 'firebase/compat/auth'; import 'firebase/compat/firestore';
Solution 1 : Add /compat
You can solve this error by just importing the firebase. This is for Firebase Web SDK version 9.Here you have to just add /compat while importing firebase. Just import this three thing to solve the error.
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read These Solutions
- error in mongoengine setup command: use_2to3 is invalid
- import flask could not be resolved from source pylance
- Unable to locate package python-pip
- No Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator
- WARN [react-native-gesture-handler] Seems like you’re using an old API with gesture components, check out new Gestures system!