Hello Guys, How are you all? Hope You all Are Fine. I am using firebase in my vue js app But today I am facing following error export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ in vuejs. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error Occurs ?
I am using firebase in my vue app And I am facing following error.
export 'default' (imported as 'firebase') was not found in 'firebase/app'
How To Solve export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error ?
- How To Solve export 'default' (imported as 'firebase') was not found in 'firebase/app' Error ?
To Solve export 'default' (imported as 'firebase') was not found in 'firebase/app' Error According to firebase documents: Update imports to v9 compat. In order to keep your code functioning after updating your dependency from v8 to v9 beta, change your import statements to use the “compat” version of each import. example given below.
- export 'default' (imported as 'firebase') was not found in 'firebase/app'
To Solve export 'default' (imported as 'firebase') was not found in 'firebase/app' Error According to firebase documents: Update imports to v9 compat. In order to keep your code functioning after updating your dependency from v8 to v9 beta, change your import statements to use the “compat” version of each import. example given below.
Solution 1: migrate to version 9
According to firebase documents: Update imports to v9 compat. In order to keep your code functioning after updating your dependency from v8 to v9 beta, change your import statements to use the “compat” version of each import. For example:
Before: version 8
import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/firestore';
After: version 9 compat
// v9 compat packages are API compatible with v8 code
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
Thank you very much for this. I was looking for an answer and really appreciate your help
Great too
fine it very helpful
Thank You, It worked 👍🏾
Thanks a lot! That was it
Thank you for preventing my laptop from being banged
good blog keep it up bro. I pray for you to create more blogs like this
Thank you! 100 times! 🙂
Good job!
My pleasure to help You Kishak
thank so much
My pleasure to help You benison matondo simao and Thank You For your Valuable Word!
Thank you so much, bro i was crazy thinking about a solution.
My pleasure to help You Tatan and Thank You For your Valuable Word!
Thank you a lot 😉
My pleasure to help You Patrick Siqueira and Thank You For your Valuable Word!
Thank you so much… your blog is really helpful. keep it up!
My pleasure to help You Sanjana and Thank You For your Valuable Word!
thank you so much for this information
It’s my Pleasure to Help You, chad. Thank You For Your Valuable words ❤️.
Thanks so much man, this work very well!
It’s my Pleasure to Help You Amilcar. Thank You For Your Valuable words.
It was really helpful. Thank you very much for kindness.
My project is looking finally good thanks to you!
It’s my Pleasure to Help You, Marc. Thank You So Much For Your Valuable words.
Thx soo much man, I am a 14 yr old trying to make a chat app using firebase (as backend) and React (as frontend). It’s so helpful 🙂
Oh, congratulations You are Just 14 years old and You are making Chat App!! Really amazing.
Thanks you so much!
It’s my Pleasure to Help You Lic Perez. Thank You So Much For Your Valuable words.