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

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment