This isn't necessarily a bug, but I wanted to know, why am I getting Cannot read property '$fire' of undefined when called in my mutations.js file?
Is this because $fire is only accessible within .vue files? I can run this.$fire.firestore just fine in my pages, but not in my store files. Here is what I'm trying to do:
This isn't necessarily a bug, but I wanted to know, why am I getting
Cannot read property '$fire' of undefined
when called in mymutations.js
file?Is this because
$fire
is only accessible within.vue
files? I can runthis.$fire.firestore
just fine in mypages
, but not in my store files. Here is what I'm trying to do:mutations.js
And I end up getting
Cannot read property '$fire' of undefined
. Do I need to importfirebase
in this case? How can I access$fire
in my store files?