I have initialized my firestore db in the script tags at the bottom of my html but I cant access the db variable or any of the imported methods from my other linked js files.
enter image description here
I keep getting ReferenceErrors when attempting to do anything with the db variable in any of the three linked js files and logging window.db to the console brings up undefined if done outside the script tags.
(I’m using only vanilla js)
Any help is appreciated 🙂
FakeGinger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.