vuex-easy-firestore icon indicating copy to clipboard operation
vuex-easy-firestore copied to clipboard

fix: TypeError When Deleting Nested Data

Open zabakala opened this issue 2 years ago • 6 comments

Hi. I just ran into an issue when trying to delete nested data.

vuex1 vuex2

Properly resolving the import from Firestore resolved the issue. Thx beforehand for taking a look at this PR.

zabakala avatar Apr 18 '23 21:04 zabakala

This is an issue when there are two different versions of firebase I believe.

mesqueeb avatar Apr 18 '23 23:04 mesqueeb

This is an issue when there are two different versions of firebase I believe.

mesqueeb avatar Apr 18 '23 23:04 mesqueeb

Yop, it could be. It is in line with the repo´s package.json, i.e. "firebase": "^9.0.0". In this particular erroneous case of mine, the imported one is firebase": "9.9.2", i.e. not 10 or onwards. But the imported /compat variant is to ensure correct functionality.

zabakala avatar Apr 19 '23 05:04 zabakala

@mesqueeb Hi. Is there a probability of merging in either this one or anything else leading to the resolution of this reported issue? We have, for the time being, resorted to using a forked version of the repo with the fix included, but we would like to switch back to the original one.

zabakala avatar May 10 '23 06:05 zabakala

@zabakala I'm just not sure this is the correct fix. I'm dependency injecting the firebase instance IIRC. So there must be something going wrong somewhere else perhaps. I will try and have a look this week.

mesqueeb avatar May 10 '23 07:05 mesqueeb