Breaking change in Firebase ^9.0.2 (Solution)
In the latest version of firebase (^9.0.2), there's no default export in "firebase/app".
You can get this working by modifying the import in gatsby-plugin-firebase/src/firebase.js as follows:
import firebase from "firebase/app"; → import firebase from "firebase/compat/app";
Is there a reason why there hasn't been any PR to fix this? I feel like it isn't right to modify files found inside the node_modules folder.
This solution also fails to account for when npm install is run on a different machine such as CICD. The code would be overwritten and go back to its original state.
Now Firebase version 10 has completely changed things...for the better. Will the gatsby-plugin-firebase be updated to implement this to take advantage of the upgrade?