samuk190 / localbase

A Firebase-Style Database ... Offline!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not add Document to [collectionName] collection.

GuyTito opened this issue · comments

not able to add a document to collection
this is the document:
{"bag_id":"2021-03-10T18:09:35.892Z","bag_name":"items for party","comment":"","currency":"₵","items":[]}

could not add

Are you using Localbase with vue.js 3 composition-Api?

I'm not using composition API. And i found out that it's not a Localbase problem. It also gave that error when I used the vanilla indexdDb API. I don't know the reason why but I came across a solution by using JSON.parse(JSON.stringify({object})) inside the Localbase methods.

@GuyTito Can you explain the solution again?
I am getting the error at this point of the tutorial https://youtu.be/KJnupY2HPCg?t=522