TypeError: Cannot read property 'bind' of undefined
See original GitHub issueEnvironment
React Native Environment Info: System: OS: Windows 10 CPU: (8) x64 Intel® Core™ i7-7700HQ CPU @ 2.80GHz Memory: 17.51 GB / 31.52 GB Binaries: npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338
Description
Receiving the error “Type Error: Cannot read property ‘bind’ of undefined”
The offending line is in
react-native\Libraries\Animated\src\AnimatedEvent.js : Line 94:
this._callListeners = this._callListeners.bind(this);
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Cannot read property 'bind' of undefined. React.js [duplicate]
this is my code. I'd like to call handlechanged method from input item. But then, Cannot read property 'bind' of undefined is raised....
Read more >TypeError: Cannot read property 'bind' of undefined - Reddit
Problem 1: You bound non-existent handleChange and handleSubmit methods to the class without defining either method. Problem 2: Without defining ...
Read more >TypeError: Cannot read property 'bind' of undefined - Odoo
Traceback: TypeError: Cannot read property 'bind' of undefined at http://localhost:8069/web_editor/static/src/js/wysiwyg/root.js:46:57 at Function._.each._.
Read more >Scheduler - The 'Cannot read property 'bind' of undefined ...
This error is shown in the console when I switch to agenda view: ERROR TypeError: Cannot read property 'bind' of undefined at inheritor....
Read more >Cannot read property 'bind' of undefined-Reactjs
[Solved]-Uncaught TypeError: Cannot read property 'bind' of undefined-Reactjs ... You have to pass in null instead of this for bind when binding methods...
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
Ok I got it! In
babel.config.js
putting'@babel/plugin-transform-flow-strip-types'
at first line inplugins
worked! (Not inside env.test.plugins)TypeError: TypeError: undefined is not an object (evaluating ‘this._callListeners.bind’)
This error is located at: in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.js:79) in RCTView (at View.js:45) in View (at Transitioner.js:215) in Transitioner (at StackView.js:22) in StackView (created by Navigator) in Navigator (at createKeyboardAwareNavigator.js:12) in KeyboardAwareNavigator (at createAppContainer.js:388) in NavigationContainer (at App.tsx:29) in App (at renderApplication.js:34) in RCTView (at View.js:45) in View (at AppContainer.js:98) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:33)
This error is located at: in NavigationContainer (at App.tsx:29) in App (at renderApplication.js:34) in RCTView (at View.js:45) in View (at AppContainer.js:98) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:33) AnimatedEvent AnimatedEvent.js:94:46 event AnimatedImplementation.js:504:42 StackViewLayout StackViewLayout.js:111:6 <unknown> createClassProxy.js:98:23 instantiate createClassProxy.js:96:6 constructClassInstance ReactNativeRenderer-dev.js:8864:26 updateClassComponent ReactNativeRenderer-dev.js:11508:6 beginWork ReactNativeRenderer-dev.js:12741:8 performUnitOfWork ReactNativeRenderer-dev.js:16075:21 workLoop ReactNativeRenderer-dev.js:16115:41 renderRoot ReactNativeRenderer-dev.js:16219:15 performWorkOnRoot ReactNativeRenderer-dev.js:17198:17 performWork ReactNativeRenderer-dev.js:17099:24 performSyncWork ReactNativeRenderer-dev.js:17060:14 requestWork ReactNativeRenderer-dev.js:16925:19 scheduleWork ReactNativeRenderer-dev.js:16724:16 scheduleRootUpdate ReactNativeRenderer-dev.js:17413:15 updateContainerAtExpirationTime ReactNativeRenderer-dev.js:17447:28 updateContainer ReactNativeRenderer-dev.js:17537:4 render ReactNativeRenderer-dev.js:18191:20 renderApplication renderApplication.js:59:34 run AppRegistry.js:101:10 runApplication AppRegistry.js:195:26 __callFunction MessageQueue.js:349:47 <unknown> MessageQueue.js:106:26 __guard MessageQueue.js:297:10 callFunctionReturnFlushedQueue MessageQueue.js:105:17
=========
{ “name”: “=====”, “version”: “0.0.1”, “private”: true, “scripts”: { “start”: “node node_modules/react-native/local-cli/cli.js start”, “test”: “jest”, “android”: “react-native run-android”, “android:log”: "react-native log-android ", “ios”: “react-native run-ios”, “build:android”: “cd android && ./gradlew assembleRelease”, “generate-homescreen-app”: “yo rn-toolbox:assets --icon <path-to-your-icon-file>” }, “dependencies”: { “@types/react-native-material-ui”: “^1.31.0”, “@types/react-native-vector-icons”: “^4.6.4”, “@types/react-navigation”: “^3.0.1”, “babel-preset-mobx”: “^2.0.0”, “mobx”: “^4.0.0”, “mobx-react”: “^5.4.3”, “react”: “16.7.0”, “react-native”: “0.57.8”, “react-native-animatable”: “^1.3.0”, “react-native-gesture-handler”: “^1.0.12”, “react-native-modal-datetime-picker”: “^6.0.0”, “react-native-phone-call”: “^1.0.9”, “react-native-swipeout”: “^2.3.6”, “react-native-typescript-transformer”: “^1.2.11” }, “devDependencies”: { “@babel/plugin-proposal-decorators”: “^7.2.3”, “@types/jest”: “^23.3.10”, “@types/node”: “^10.12.18”, “@types/react”: “^16.7.17”, “@types/react-native”: “^0.57.19”, “@types/react-test-renderer”: “^16.0.3”, “babel-jest”: “23.6.0”, “babel-plugin-transform-decorators-legacy”: “^1.3.5”, “jest”: “23.6.0”, “metro-react-native-babel-preset”: “0.51.1”, “react-native-animatable”: “^1.3.0”, “react-native-calendars”: “^1.21.0”, “react-native-elements”: “^0.19.1”, “react-native-keyboard-aware-scroll-view”: “^0.8.0”, “react-native-material-dropdown”: “^0.11.1”, “react-native-material-ui”: “^1.30.1”, “react-native-navigation”: “^2.1.3”, “react-native-paper”: “^2.2.6”, “react-native-ui-lib”: “^3.5.0”, “react-native-vector-icons”: “^6.1.0”, “react-navigation”: “3.0.9”, “react-test-renderer”: “16.7.0”, “typescript”: “^3.2.2” }, “jest”: { “preset”: “react-native” } }