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

前端 未结 5 1288
青春惊慌失措
青春惊慌失措 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:05

    You can also use the spread operator like:

    this.fireStore
      .doc(`projects/${projectId}/`)
        .set( {...proj} ))
    

    It work for me

提交回复
热议问题