How can I solve the error 'TS2532: Object is possibly 'undefined'? How can I solve the error 'TS2532: Object is possibly 'undefined'? firebase firebase