-
Couldn't load subscription status.
- Fork 2.3k
Closed
Labels
Workflow: Waiting for User ResponseBlocked waiting for user response.Blocked waiting for user response.help: generalGeneral help wantedGeneral help wantedimpact: build-errorBehaviour causing build failureBehaviour causing build failureresolution: fixedA fix has been merged into main.A fix has been merged into main.
Milestone
Description
Issue
Updating to react native v0.56.0 requires flow bin update to ^0.75.0 which results in following errors
Error ┈┈┈┈┈ node_modules/react-native-firebase/dist/modules/firestore/Query.js.flow:417:20
Property fieldpath is missing in NativeFieldPath [1].
[1] 46│ fieldPath: NativeFieldPath,
:
414│ fieldOrder.fieldPath.string
415│ ) {
416│ values.push(docSnapshot.get(fieldOrder.fieldPath.string));
417│ } else if (fieldOrder.fieldPath.fieldpath) {
418│ const fieldPath = new FieldPath(...fieldOrder.fieldPath.fieldpath);
419│ values.push(docSnapshot.get(fieldPath));
420│ }
Error ┈┈┈┈ node_modules/react-native-firebase/dist/modules/storage/reference.js.flow:77:12
Cannot return new StorageTask(...) because StorageTask [1] is incompatible with
Promise [2].
74│ * @return {Promise}
75│ */
[2] 76│ downloadFile(filePath: string): Promise<Object> {
[1] 77│ return new StorageTask(
78│ DOWNLOAD_TASK,
79│ getNativeModule(this._storage).downloadFile(this.path, filePath),
80│ this
81│ );
82│ }
83│
84│ /**
Error ┈┈┈ node_modules/react-native-firebase/dist/modules/storage/reference.js.flow:100:12
Cannot return new StorageTask(...) because StorageTask [1] is incompatible with
Promise [2].
97│ */
[2] 98│ putFile(filePath: Object, metadata: Object = {}): Promise<Object> {
99│ const _filePath = filePath.replace('file://', '');
[1] 100│ return new StorageTask(
101│ UPLOAD_TASK,
102│ getNativeModule(this._storage).putFile(this.path, _filePath, metadata),
103│ this
104│ );
105│ }
106│ }
107│
Environment
- Application Target Platform: iOS
- Development Operating System: macOS High Sierra
- Build Tools: Not needed
React Nativeversion: 0.56.0
React Native FirebaseVersion: 4.2.0
FirebaseModule: firestore, storage
- Are you using
typescript? no
Loving react-native-firebase? Please consider supporting them with any of the below:
- 👉 Back financially via Open Collective
- 👉 Follow
React Native FirebaseandInvertaseon Twitter - 👉 Star this repo on GitHub ⭐️
Salakar, adrianocola, mgenov, leethree, gut4 and 3 more
Metadata
Metadata
Assignees
Labels
Workflow: Waiting for User ResponseBlocked waiting for user response.Blocked waiting for user response.help: generalGeneral help wantedGeneral help wantedimpact: build-errorBehaviour causing build failureBehaviour causing build failureresolution: fixedA fix has been merged into main.A fix has been merged into main.