TypeError: Super expression must either be null or a function
See original GitHub issuePlease provide all the information requested. Issues that do not follow this format are likely to stall.
Description
TypeError: Super expression must either be null or a function
_inherits
inherits.js:5:10
<unknown>
index.bundle?platform=ios&dev=true&minify=false:157734:27
<unknown>
index.bundle?platform=ios&dev=true&minify=false:157939:3
loadModuleImplementation
require.js:321:4
guardedLoadModule
require.js:210:11
metroRequire
require.js:128:6
<global>
index.js:7
loadModuleImplementation
require.js:321:4
guardedLoadModule
require.js:210:11
metroRequire
require.js:128:6
React Native version:
System:
OS: macOS 10.15.4
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 1.49 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.19.0 - ~/.nvm/versions/node/v10.19.0/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v10.19.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: Not Found
IDEs:
Android Studio: Not Found
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
React-native :
0.61.5 => 0.62
## Steps To Reproduce
Upgrade error
## Expected Results
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:20
Top Results From Across the Web
Uncaught TypeError: Super expression must either be null or ...
This means that you want subclass something, which should be Class , but is undefined . The reasons might be: typo in Class...
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 >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 >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 >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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I used RN 0.62.2 and it works fine in IOS , but when i trying to run it with android i get the error you mention above… i checked all your’s suggestions but it’s didn’t help. Any advise guys? Answer- Problem with RN 0.62 + ‘react-native-gifted-chat’ after comment ‘react-native-gifted-chat’ the problem was solved https://github.com/FaridSafi/react-native-gifted-chat/issues/1703
All the workarounds I’m seeing are to change the class you are extending, or upgrade a library.
Can someone explain the underlying issue that causes this error?