Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object

前端 未结 5 1292
青春惊慌失措
青春惊慌失措 2020-12-08 07:01

Below code works fine until today. But I don\'t know now it is not working and gives below error.Could you tell me why?

Error: Function DocumentRefere

5条回答
  •  被撕碎了的回忆
    2020-12-08 07:29

    Error is simply stating that data entered is invalid!

    I've also faced the error from nowhere, which was because I removed the input field from interface which was supposed to get it's value and upload it in the document of some collection!

    note: check your code in .ts file firebase.firestore().collection("some_name").add() / set() if some unnecessary field is there or not.

提交回复
热议问题