This v8 method is deprecated and will be removed in the next major release as part of move to match Firebase Web modular v9 SDK API. Please use setCrashlyticsCollectionEnabled()
instead.
#8275
-
Hi,
Now I'm getting warning to replace
I'm a little bit confused with the message. I'm using Any idea what to change? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Was thinking about something like this: import { getApp } from '@react-native-firebase/app';
import { getAnalytics, FirebaseAnalyticsTypes } from '@react-native-firebase/analytics';
import { getCrashlytics, FirebaseCrashlyticsTypes } from '@react-native-firebase/crashlytics';
let analyticsInstance: FirebaseAnalyticsTypes.Module | null = null;
let crashlyticsInstance: FirebaseCrashlyticsTypes.Module | null = null;
export const analytics = (): FirebaseAnalyticsTypes.Module => {
if (!analyticsInstance) {
analyticsInstance = getAnalytics(getApp());
}
return analyticsInstance;
};
export const crashlytics = (): FirebaseCrashlyticsTypes.Module => {
if (!crashlyticsInstance) {
crashlyticsInstance = getCrashlytics();
}
return crashlyticsInstance;
};
but I'm getting
I have checked and and for crashlytics I'm getting:
Old V8 works as expected. Any idea what I'm doing wrong? @russellwheatley or @mikehardy maybe you see the issue here? |
Beta Was this translation helpful? Give feedback.
@mikehardy I got the root cause of the issue. In the project we are using
babel-plugin-module-resolver
and within plugin configuration we hadcwd: babelrc
. Switching tocwd: packagejson
fixed the issue. However it was not easy to find this one line :DIssue similar to this one: #8163