DEV Community

Cover image for If you're receiving error even if everything in Firebase appears to be in order, try this
Shawon Saha
Shawon Saha

Posted on

1

If you're receiving error even if everything in Firebase appears to be in order, try this

So, I've been getting errors in Firebase recently, despite the fact that everything I did was correct. The mistake was then found to be due to a compatibility issue with the most recent version of Firebase.

As a result, instead of importing firebase from firebase/app I now import it from firebase/compat/app I performed the same thing with firestore and auth. My problem is solved simply by adding the /compat path.

Importing Firebase

I hope this information is useful to you at some time.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more