undefined is not a function

hey Pendo support team, we are using Sentry to capture crashes. We have multiple crashes that make no sense. Couple that fact with rn-pendo-sdk/lib/pendoRN.js:1:2888 being in the stack trace of all of these, it leads us to believe that Pendo is throwing in our stack trace and forcing us to report these to sentry. Would you please confirm? And also recommend a path moving forward? I was thinking we'd just filter out any errors where pendo is in the stack trace, specificlaly the PNDContainer, but i'd like some advice. Please reply to me. Thank you so much! Your support team is awesome! I look forward to hearing from you!


Error: undefined is not a function
    at AllFiltersProvider (/src/components/filters/AllFiltersContext.tsx:121:39)
    at RCTView (app:///index.android.bundle)
    at React.forwardRef$argument_0 (/node_modules/react-native/Libraries/Components/View/View.js:32:34)
    at RNCSafeAreaProvider (app:///index.android.bundle)
    at SafeAreaProvider (/node_modules/react-native-safe-area-context/src/SafeAreaContext.tsx:35:11)
    at constructor (/src/components/shared/ErrorBoundary/ErrorBoundary.tsx:31:29)
    at Initializer (/src/components/Initializer/Initializer.tsx:28:27)
    at EnsureSingleNavigator (/node_modules/@react-navigation/core/src/EnsureSingleNavigator.tsx:20:57)
    at BaseNavigationContainer (/node_modules/@react-navigation/core/src/BaseNavigationContainer.tsx:82:19)
    at ThemeProvider (/node_modules/@react-navigation/native/src/theming/ThemeProvider.tsx:11:46)
    at NavigationContainerInner (/node_modules/@react-navigation/native/src/NavigationContainer.tsx:63:3)
    at PNDContainer (/node_modules/rn-pendo-sdk/lib/pendoRN.js:1:2888)
    at bound handleError (app:///index.android.bundle)
    at DeepLinksContextProvider (/src/components/DeepLinksContext.tsx:36:11)
    at AppContent (/App.tsx:133:26)
    at QueryClientProvider (/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:9)
    at PersistQueryClientProvider (/node_modules/@tanstack/react-query-persist-client/build/modern/PersistQueryClientProvider.js:12:11)
    at RNGestureHandlerRootView (app:///index.android.bundle)
    at GestureHandlerRootView (/node_modules/react-native-gesture-handler/src/components/GestureHandlerRootView.android.tsx:12:8)
    at constructor (/src/components/shared/ErrorBoundary/ErrorBoundary.tsx:31:29)
    at App (app:///index.android.bundle)
    at constructor (/node_modules/@sentry/react-native/dist/js/feedback/FeedbackWidgetProvider.js:20:24)
    at ReactNativeProfiler#constructor (/node_modules/@sentry/react-native/dist/js/tracing/reactnativeprofiler.js:16:24)
    at RCTView (app:///index.android.bundle)
    at React.forwardRef$argument_0 (/node_modules/react-native/Libraries/Components/View/View.js:32:34)
    at TouchEventBoundary#constructor (/node_modules/@sentry/react-native/dist/js/touchevents.js:24:19)
    at RootApp (app:///index.android.bundle)
    at RCTView (app:///index.android.bundle)
    at React.forwardRef$argument_0 (/node_modules/react-native/Libraries/Components/View/View.js:32:34)
    at AppContainer (/node_modules/react-native/Libraries/ReactNative/AppContainer-prod.js:20:11)
0

コメント

2件のコメント
  • 正式なコメント

    Hi Ryan,
    Thanks for sharing the stack-trace with us,

    Even though rn-pendo-sdk/lib/pendoRN.js (PNDContainer) shows up in your stack trace, it isn’t the source of the crash. PNDContainer simply wraps your NavigationContainer, so its presence in stack traces is expected whenever navigation is involved.

    In this case, the real error is happening at
    src/components/filters/AllFiltersContext.tsx:121:39, where something that isn’t a function is being invoked. That’s what’s producing the “undefined is not a function” message.

    For that reason, we don’t recommend filtering out all errors that include pendo/PNDContainer. Doing so would hide valid errors in your app, since the wrapper will almost always appear in the stack.

    If you can share the contents of AllFiltersContext.tsx, especially around line 121, we can help you pinpoint exactly which non-function call is causing the issue.

  • Ryan Pliske which rn-pendo-sdk plugin are you using?

    0

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿