question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android]TypeError: Super expression must either be null or a function in react-native@0.62.0-rc.5

See original GitHub issue

Description:

  • the error happens while running react-native run-android after upgrade from 0.61.5 to 0.62.0-rc.5.
  • this upgrade change is according to https://react-native-community.github.io/upgrade-helper
  • screenshot here, and I see TouchableNativeFeedbackSafe in the error stack, and I found it was invoked by ActionSheetProvider
screenshot

image

React Native version:

react-native info outputs
  System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
    Memory: 252.58 MB / 16.00 GB
    Shell: 2.7.1 - /usr/local/bin/fish
  Binaries:
    Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.10.3 - ~/.nvm/versions/node/v10.16.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-25 | Google APIs ARM EABI v7a, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6241897
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: ^4.3.0 => 4.3.0 
    react: 16.13.0 => 16.13.0 
    react-native: 0.62.0-rc.5 => 0.62.0-rc.5 
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

  1. change my codes according to https://react-native-community.github.io/upgrade-helper.
  2. run react-native run-ios, and it is OK.
  3. run react-native run-android and then meet this error.
  4. I just created a new project with react-native@0.62.0-rc.5 and @expo/react-native-action-sheet@3.5.0, the problem can reproduce, here is the link

Expected Results

  1. successfully run the android app.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:20

github_iconTop GitHub Comments

13reactions
bradbytecommented, Mar 30, 2020

🎉 This issue has been resolved in version 3.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

2reactions
zhigang1992commented, Apr 9, 2020

sry, it was https://github.com/FaridSafi/react-native-gifted-chat/issues/1703 after force resolution it’s now working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR TypeError: Super expression must either be null or a ...
I am facing this issue while I try to set up react-realm with the latest RN project. > ERROR TypeError: Super expression must...
Read more >
React-native: Super expression must either be null or a function
Solved It By Changing [. export default class App extends Component. ] to export default class App extends React. Component.
Read more >
React Errors : Super expression must either be null or a function
Have you come across this error when working with React? Uncaught TypeError: Super expression must either be null or a function, not undefined....
Read more >
Uncaught TypeError: Super expression must either be null or ...
After making production build i am getting this error in console and application is not getting loaded. My Environment: OS: Linux/Ubuntu ...
Read more >
React Errors : Super expression must either be null or a function
Firstly, if you're certain that you're extending from the correctly named class, e.g. React.Component, not React.component or React.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found