benwinding / react-admin-firebase

A firebase data provider for the react-admin framework
https://benwinding.github.io/react-admin-firebase/
MIT License
460 stars 175 forks source link

Problem in creating a record in firestore #276

Open l0u1sg opened 1 year ago

l0u1sg commented 1 year ago

Hello, I followed this tutorial to start with React Admin and firebase, but I have a problem, I can't create/modify records, I have this error that appears in the console

FirebaseError: [code=invalid-argument]: Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Qh object

SCR-20230428-teqs

Does anyone have a solution?

Med5KDB commented 10 months ago

The data provider is responsible for handling CRUD actions in React Admin. That's being said, I invite you to check your dataProvider config i.e firebaseDataProvider in your case