Skip to content
Advertisement

Firebase firstore auto increment number not working (React js)

JavaScript

i searched for many solutions but its all say somthing like this. so if any one can help me then it will be very good form me.

here is the error log

Advertisement

Answer

I think you’re mixing and matching SDK versions, or at least syntax.

Try using the increment top-level function from the regular v9 SDK (not its compat library).

JavaScript
Advertisement