Hi, recently I tried installing RN v0.60
(fresh install). When I'm Linking RNFirebase v5.5.4
this error show's up.
inntro:ztestapp eddie$ react-native link react-native-firebase
warn Package react-native-firebase has been ignored because it contains invalid configuration. Reason: Unknown option dependency.platforms.android.buildPatch with value "" implementation project(':react-native-firebase')"" was found. This is either a typing error or a user mistake. Fixing it will remove this message.
error Unknown dependency. Make sure that the package you are trying to link is already installed in your "node_modules" and present in your "package.json" dependencies. Run CLI with --verbose flag for more details.
Please note that this issue is happening when I'm trying to execute this command react-native link react-native-firebase
to the project.
This error show's on my new installed project. Is there any compatibility issue from the latest React-Native v0.60?
Click To Expand
#### `ios/Podfile`: - [ ] I'm not using Pods - [ ] I'm using Pods and my Podfile looks like:
# N/A
#### `AppDelegate.m`:
// N/A
Click To Expand
#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`:
// N/A
#### `android/app/build.gradle`:
// N/A
#### `android/settings.gradle`:
// N/A
#### `MainApplication.java`:
// N/A
#### `AndroidManifest.xml`:
<!-- N/A -->
Click To Expand
**`react-native info` output:**
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
Memory: 3.06 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.14.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.10.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 24, 25, 26, 27, 28
Build Tools: 28.0.2, 28.0.3
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native-rename: 2.4.0
- **Platform that you're experiencing the issue on**:
- [ ] iOS
- [ ] Android
- [ ] **iOS** but have not tested behavior on Android
- [ ] **Android** but have not tested behavior on iOS
- [x] Both
- **`react-native-firebase` version you're using that has this issue:**
- `5.5.4`
- **`Firebase` module(s) you're using that has the issue:**
- ` `
- **Are you using `TypeScript`?**
- `N`
Think react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]
React Native Firebase
and Invertase
on Twitter for updates on the library.As far as I know RN v0.60 has breaking change connected with integrating native packages so probably RNF 6.x will be compatible with newest version of RN.
@eggybot did you find any solution to use FIREBASE 5.5.4 with RN 0.60.0 ?? I'm having this same problem with a new project I'm starting ... if I find something, I'll notice it here too!
RNFirebase is working on this issue
refer https://github.com/invertase/react-native-firebase/issues/2194
Hi guys, I've being able to get a solution for it, all you need to do is download this file react-native.config.js from this repo https://github.com/zico4reel/React-Native-Firebase-implementation-fix and place it in the react-native-firebase directory which is inside your node_modules worked like a charm for me when I wrote it, So I felt I should share it for others as well
Hey all, v5.5.5 has been published with https://github.com/invertase/react-native-firebase/pull/2335 in it which should have fixed this issue, please give it a go.
Thanks
Loving react-native-firebase
and the support we provide? Please consider supporting us with any of the below:
React Native Firebase
and Invertase
on Twitter Correct me if I'm wrong: autolinking should add pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'
to podfile automatically, and with 5.5.5 it doesn't
@fisherwise it should add/auto-link in the pod for v5.5.5
@eggybot Thanks for reply! In my case it didn't.
My steps:
yarn add react-native-firebase@latest
cd ios
pod install
Add pod 'Firebase/Core'
and other modules
pod install
There's no pod 'RNFrebase'
yarn react-native run-ios
App exits when launched
edit: also configured AppDelegate.m
@fisherwise did you run this command react-native link react-native-firebase
?
@eggybot no. I suppose it would be autolink. https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
update on my case: autolink doesn't add pod to Podfile
but somehow it works
did u manage to make it work with android ?
@creative-git - posted this elsewhere - but this definitely works with RN60+Android - you can see the steps it performs https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh
Still getting this ... RN60 RF5.5.4
@ptupi closed issue, if you're still seeing the error post a new issue following the template with all information required to troubleshoot - also note that since I have posted a demo that shows it working, it can't be reproduced according to current versions and documentation, so I'd triple-check your integration to make sure everything is correct
@mikehardy Thanks for the attention.
I've ran: _yarn add react-native-firebase_
Then: _react-native link --verbose react-native-firebase_
And this is what I've got:
_info Linking "react-native-firebase" iOS dependency
debug Reading C:\Users\xx\Documents\xx\sanghaapp\iosPodfile
error Linking "react-native-firebase" failed._
Any thoughts?
Any thoughts?
Follow my advice
Most helpful comment
Hey all, v5.5.5 has been published with https://github.com/invertase/react-native-firebase/pull/2335 in it which should have fixed this issue, please give it a go.
Thanks
Loving
react-native-firebase
and the support we provide? Please consider supporting us with any of the below:React Native Firebase
andInvertase
on Twitter