-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.57] _this._registerEvents is not a function on a clean project #21094
Comments
got the same issue. |
I got this issue on a clean new project as well. Currently I need to fallback to 0.56.0 to continue |
#20567 by kelset
|
react-native start --reset-cache worked for me on @hbicexp solution |
Same error.. |
We updated to React Native 0.57.4 and @babel/core 7.1.2 and our problem went away. |
Updating to React Native 0.57.4 and @babel/core 7.1.2 did not solve it for me. |
Clean install doing nothing but |
still a problem |
having the same issue after changing to apollo client 2.0 |
Any solution for this issue? Nothing work for me :/ |
it has been 1,5 year that I am coding with react-native. what i learned in this long time.
'cause all I have is these fc.g bugs with no solution. |
Did anyone found a solution for this? I am facing the issue for a while now! Cant make new projects cause they show the same error.. :/ |
@ShooterArk my react-native version is "0.58.4". The following steps fix my issue:
Hope this can fix your issue |
@huanday I need to execute it on Android emulator!! I have already tried multiple times: react-native start -- --reset-cache. |
my react-native version is "0.59.4" and have same issue |
Try commenting out |
Why is this closed when the referred post has no solution apart saying to piss off and create a new project? I spent entire weekend trying to upgrade some libraries and its been a nightmare.. What a waste of time.. Now finally my project builds up and starts, but upon starting I have this issue as well.. I probably going to give up and just use ancient configs.. At least it works rather than stay up to date and have a pile of errors |
After following @hbicexp 's instructions I had to restart my system to get it working/truly clear the cache(was still getting errors otherwise) |
I had the same problem. I did the following and now it works fine:
|
Never mind. The problem was fixed but after about 30 mins it's back and this time the above solution is not working. Update: |
Facing the same issue.
Tried all the methods mentioned above. This is the output of my react-native info
package.json
|
Anybody got any solution yet !! |
I'm also facing this issue on version 0.60.5 react-native info:
package.json
babel.config.js
I tried: Solution:I removed 'react-native' from my babel.config.js and added a parenthesis on the render of App.js instead of making it an object. Changed it from:
to
|
Environment
Description
Bumped an existing
0.56.1
project to0.57
and encountered an error on simulator start:_this._registerEvents is not a function on a clean project
. Tried a new project from scratch and got the same error. Running Xcode 10 Beta.Same error was mentioned in the following ticket: #20712
Reproducible Demo
xcode-select -s /Applications/Xcode-beta.app/Contents/Developer react-native init AwesomeProject cd AwesomeProject node_modules/.bin/react-native run-ios
EDIT: Tried another new project and it worked this time. I guess it must be related to caching issues.
Will reopen if I can reliably reproduce.
The text was updated successfully, but these errors were encountered: