I am using Webpack with firebase and firebase-admin.
To install firebase I ran
npm install --save firebase
I am importing firebase
This was a weird error, and I notice it only when installing with npm. For some reason, I don't encounter the issue when using yarn. I didn't have to change imports, like many answers here have suggested, nor any part of my code.