close

[Fixed] export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’

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.

How to Fix export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’ Error?

  1. 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';

  2. 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

Leave a Comment