I have a project where I use nativescript with Angular and want to implement Firebase for the back-end. I followed the instructions in the doc of the package and the firebase.init()
works without errors. But when I want to use the firestore like here:
const usernameCollection = firebase.firestore().collection("testUsernames");
I get the error:
This expression is not callable. Type 'typeof firestore' has no call signatures.
I import the module like this:
import { firebase } from "@nativescript/firebase";