close

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

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 ?

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

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

25 thoughts on “[Solved] export ‘default’ (imported as ‘firebase’) was not found in ‘firebase/app’”

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

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

    Reply

Leave a Comment