You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Unhandled promise rejection: TypeError: null is not an object (evaluating 'AmplitudeReactNative.setLibraryName')]
at node_modules@amplitude\react-native\src\index.ts:null in Amplitude#_setLibraryName
at node_modules@amplitude\react-native\src\index.ts:null in Amplitude#constructor
at node_modules@amplitude\react-native\src\index.ts:null in Amplitude.getInstance
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _next
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in Promise$argument_0
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallTwo
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in doResolve
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in Promise
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _next
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in Promise$argument_0
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallTwo
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in doResolve
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in Promise
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _next
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallOne
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in setImmediate$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _allocateCallback$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callReactNativeMicrotasksPass
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in callReactNativeMicrotasks
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callReactNativeMicrotasks
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in flushedQueue
The text was updated successfully, but these errors were encountered:
Hi, please help!
I’ve just upgrade from Expo SDK 43 to 46, and seems like I need to use a custom development client instead of Expo Go, because of expo-analytics-amplitude will be deprecated in SDK 45. and clearly written in expo documents that expo-analytics-amplitude will be Deprecated. So I need to use the official @amplitude/react-native.
So I migrating from expo-analytics-amplitude to @amplitude/react-native migration
I code in my JavaScript project that I follow the instruction in Installation and Quick Start, and point to React Native SDK (Legacy)
This what I code:
import * as React from 'react
import { Amplitude, Identify } from '@amplitude/react-native'
const ampInstance = Amplitude.getInstance()
ampInstance.init(AMPLITUDE_API_KEY)
And unfortunately appears this error!!
[Unhandled promise rejection: TypeError: null is not an object (evaluating 'AmplitudeReactNative.setLibraryName')]
at node_modules@amplitude\react-native\src\index.ts:null in Amplitude#_setLibraryName
at node_modules@amplitude\react-native\src\index.ts:null in Amplitude#constructor
at node_modules@amplitude\react-native\src\index.ts:null in Amplitude.getInstance
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _next
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in Promise$argument_0
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallTwo
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in doResolve
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in Promise
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _next
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in Promise$argument_0
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallTwo
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in doResolve
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in Promise
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _next
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallOne
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in setImmediate$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _allocateCallback$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callReactNativeMicrotasksPass
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in callReactNativeMicrotasks
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callReactNativeMicrotasks
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in flushedQueue
The text was updated successfully, but these errors were encountered: