Skip to content

[TypeError: Cannot read property 'prototype' of undefined] #1331

@inductionotg

Description

@inductionotg

Checklist

Description

After Upgrading to React 19 and expo sdk54 and RN 0.81.4, I am getting this issue [TypeError: Cannot read property 'prototype' of undefined]

Whenever I open my app , I am getting this [TypeError: Cannot read property 'prototype' of undefined] issue and Whenever I remove AuthProvider from My App , the App is working fine

ERROR [TypeError: Cannot read property 'prototype' of undefined]

Image

Call Stack
(node_modules\react-native-auth0\src\hooks\Auth0Provider.tsx)
mountMemo (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
HooksDispatcherOnMountInDEV.useMemo (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
exports.useMemo (node_modules\react\cjs\react.development.js)
(node_modules\react-native-auth0\src\hooks\Auth0Provider.tsx)
callComponent.reactStackBottomFrame (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
renderWithHooks (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
updateFunctionComponent (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
beginWork (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
runWithFiberInDEV (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
performUnitOfWork (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
workLoopSync (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
renderRootSync (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
performWorkOnRoot (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
performWorkOnRootViaSchedulerTask (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)

Call Stack
RootLayout (app_layout.tsx)
BaseRoute (node_modules\expo-router\build\useScreens.js)
SceneView (node_modules@react-navigation\core\lib\module\SceneView.js)
setOptions$argument_0 (node_modules@react-navigation\core\lib\module\useDescriptors.js)
render (node_modules@react-navigation\core\lib\module\useDescriptors.js)
reduce ()
render (node_modules@react-navigation\core\lib\module\useDescriptors.js)
useNavigationBuilder (node_modules@react-navigation\core\lib\module\useNavigationBuilder.js)
Content (node_modules\expo-router\build\ExpoRoot.js)
ContextNavigator (node_modules\expo-router\build\ExpoRoot.js)
(node_modules\expo-router\build\ExpoRoot.js)
App (node_modules\expo-router\build\qualified-entry.js)
WithDevTools (node_modules\expo\src\launch\withDevTools.tsx)

Reproduction

  1. Upgrade to expo 54 , react 19 and above and React Native 0.81 above
  2. Opening the App and getting this issue

Additional context

No response

react-native-auth0 version

5.0.0

React Native version

0.81.4

Expo version

54.0.10

Platform

Android

Platform version(s)

Android 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the codemore info neededMore information is required to action or process this issue or PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions