Uncaught Firebaseerror: Function Documentreference.set() Called With Invalid Data. Unsupported Field Value: Undefined
I'm creating a e-commerce with Vue & Firebase. Trying to add some cart information from the current logged in user. Strange thing is at the very first time information saved pe
Solution 1:
That error message is saying that one of the fields you're trying to write to a document is undefined
in JavaScript. Check the values that you're passing by using console.log or using a debugger to figure out which one is undefined, then change your code to pass something else, or omit the field entirely.
Also bear in mind that the error message is referencing a call to DocumentReference.set()
, but the code you're showing is calling DocumentReference.add()
, so the error might be in a different location.
Post a Comment for "Uncaught Firebaseerror: Function Documentreference.set() Called With Invalid Data. Unsupported Field Value: Undefined"