I am using Webpack with firebase and firebase-admin.
To install firebase I ran
npm install --save firebase
I am importing firebase
Though there are many root causes behind this issue, a simple one like this also could be the case.
I forgot to include the js files for auth and db although I use them inside the JS code.
Before the fix;
After the fix;