How to fix the Firebase SDK console warning

How to fix the Firebase SDK warning you probably reading in our console:
[It looks like you’re using the development build of the Firebase JS SDK…]

The proper way to import firebase and getting rid of the warnings is:
replace where you find import firebase from ‘firebase’.
The warning is asking you which module are you using.

import firebase from ‘firebase/app’;
import ‘firebase/firestore’; // If using Firestore
import ‘firebase/analytics’; // If using Analytics
import ‘firebase/database’; // If using Firebase database

Till RS team fix this, you can easily using your find and replace in your Visual Code Studio or whatever, before you deploy a new version.

1 Like