EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Only on Ios when I use "@nativescript/firebase": "^11.0.0" get error when try to batch = firestore.batch(); #1690

Open genautkin opened 3 years ago

genautkin commented 3 years ago

Uncaught (in promise): TypeError: firebase_common__WEBPACK_IMPORTED_MODULE1.firebase.firestore.WriteBatch is not a constructor TypeError: firebase_commonWEBPACK_IMPORTED_MODULE1.firebase.firestore.WriteBatch is not a constructor at Object.push.../node_modules/@nativescript/firebase/firebase.js.firebase_commonWEBPACK_IMPORTED_MODULE1.firebase.firestore.batch (file: node_modules/@nativescript/firebase/firebase.ios.js:1574:0)

and another one when I try to remove the listener NativeScript encountered a fatal error: Uncaught TypeError: listener.remove is not a function

import { firebase,firestore } from "@nativescript/firebase";

"dependencies": { "@angular/animations": "~10.1.0", "@angular/common": "~10.1.0", "@angular/compiler": "~10.1.0", "@angular/core": "~10.1.0", "@angular/forms": "~10.1.0", "@angular/platform-browser": "~10.1.0", "@angular/platform-browser-dynamic": "~10.1.0", "@angular/router": "~10.1.0", "@nativescript/angular": "~10.1.0", "@nativescript/core": "~7.0.0", "@nativescript/theme": "~2.3.0", "@schematics/angular": "^10.1.3", "reflect-metadata": "~0.1.12", "rxjs": "^6.6.0", "zone.js": "~0.11.1", "@nativescript/camera": "^5.0.0", "@nativescript/firebase": "^11.0.0", "@ngx-translate/core": "^13.0.0", "@ngx-translate/http-loader": "^6.0.0", "date-fns": "^2.16.1", "dateformat": "^3.0.3", "nativescript-app-sync": "^2.0.0", "nativescript-audio": "^6.1.0", "nativescript-auto-fit-text": "^1.0.0", "nativescript-camera": "^4.5.0", "nativescript-insomnia": "^2.0.0", "nativescript-toasts": "^1.0.3"

msaravitz commented 3 years ago

Have you found any work around for this? Experiencing the same issue, and batching would be very helpful.

genautkin commented 3 years ago

I keep using the old version of native script because of it.

On Fri, Nov 20, 2020, 00:50 Matt Saravitz notifications@github.com wrote:

Have you found any work around for this? Experiencing the same issue, and batching would be very helpful.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/1690#issuecomment-730685887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJNBJ4NMF25LBRKSGGNOX2TSQWONDANCNFSM4SD55BSA .

cbanzet commented 3 years ago

We also really need the batch method to work on NS7.

"dependencies": { "@angular/animations": "~10.1.0", "@angular/common": "~10.1.0", "@angular/compiler": "~10.1.0", "@angular/core": "~10.1.0", "@angular/forms": "~10.1.0", "@angular/platform-browser": "~10.1.0", "@angular/platform-browser-dynamic": "~10.1.0", "@angular/router": "~10.1.0", "@nativescript/angular": "~10.1.0", "@nativescript/core": "~7.0.0", "@nativescript/firebase": "^11.1.3", "@nativescript/theme": "~3.0.0", "nativescript-ui-gauge": "^7.0.2", "nativescript-carousel": "^7.0.1", "nativescript-videoplayer": "^5.0.1", "reflect-metadata": "~0.1.12", "rxjs": "^6.6.0", "zone.js": "~0.11.1" }, "devDependencies": { "@angular/compiler-cli": "~10.1.0", "@nativescript/android": "7.0.1", "@nativescript/ios": "7.0.5", "@nativescript/types": "~7.0.0", "@nativescript/webpack": "~3.0.0", "@ngtools/webpack": "~10.1.0", "typescript": "~4.0.0" },