-
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
undefined is not a function(evaluating '_this.registerEvents()') #20791
Comments
I have this exact error. Worth mentioning that it's because i'm on 57-rc0 to escape the acessiblity bug in 56 Also worth mentioning that I'm here because 56 is the default configuration in webstorm. Whats a stable version of react-native I can use to learn things? |
I got this too. Replaced babel preset, deleted node_modules/.cache, nothing. |
Is this still a problem with rc2 ? because i used to have this issue, but dont with rc2
|
I do have this problem with rc2 (on macOS) |
@danielgindi can you upload a repro? Just tested locally with the 0.57-branch (details here #20712 (comment) ) and I can't repro this issue. |
rc2 produces the same results on windows |
@kelset well, creating a new project using In my own project, I tried to apply the commit for |
Same problem here on 0.57.0-rc.2 build for android : _registerEvents is undefined |
What does the Metro instance output ? |
Had same issue on macOS. |
@donjo9 no errors reported on the metro instance just
|
Seems like rc-3 solves the issue |
This comment has been minimized.
This comment has been minimized.
Try deleting |
i believe it must be some kind of caching issue, because i had the issue, but can't recreate with any of the rc, not clean install or upgrade from 0.56 |
@danielgindi And I clean all my cache. I come from 0.56 version |
@tamirrab Maybe it's time to get drastic.
|
Did it all unfortunately the same error :( |
steps that i done: Still the same error |
do you have a repo that produces that error that we could test on? |
How can I do it? I get this Error on the Terminal:
|
There's one more thing I did before it started working properly, which might not be related to rc.3: |
Same issue here on 0.57.0-rc.3 Windows 10. Like @dmead, I am also attempting to get away from the AccessibilityInfo bug in 0.56 Windows that prevents any apps from working. Attempted solutions proposed by @danielgindi without success, still the exact same error. |
@joejordan i will ask you the same question ;) do you have a repository that produces this error, that we could clone and test on :) |
This comment has been minimized.
This comment has been minimized.
@164738777 same question ;) do you have a repository that produces this error, that we could clone and test on :) |
@donjo9 here's one. https://github.com/joejordan/0.57rc3-WindowsCrash Was able to duplicate the issue on two Windows 10 systems. Edit: Here's a zip of the full repo including all node modules: https://drive.google.com/open?id=1QeysYZm5-mddwwYSUiwdMt5_M66ojlUq |
@joejordan Your {
"presets": ["module:metro-react-native-babel-preset"]
} |
@gengjiawen that must have been generated by create-react-native-app because I don't think I touched that file. Regardless, I tried it with that preset and the 'undefined' red screen of death still appears upon launch. |
Can you try to initial a new project using rc3 ? |
@gengjiawen this issue exists in my windows 10 too, can you point on what files to look for, maybe I can give a try. Thanks |
check my previous comment, I have not tested it, maybe need more file to change. |
I found the following so far: @joejordan s repo failed on my machine as well, changing the .babelrc and changing the
in package.json did nothing. What did work, was initial a new project with rc3 with |
By looking at the comments, I suggest you folks wait until the changelog for 0.57 is out, we'll try to have a list of manual steps you have to do to correctly upgrade your projects to 0.57 since a few things are changing. Again, we are still on RC stage so don't rush into it. |
Might as well be the same :D edit: ok now its back, even in my "working" App, but again a |
Sorry for keep spamming, but this got me from a clean git clone to a working app
with the Android SDK manager From this point on |
I can also confirm some of @donjo9's process. Here is what got me from a clean git repo to a working app:
At this point the bundler booted up, the app installed on the emulator, and I was able to debug via chrome dev tools. I will update this later tonight when I can test on a different computer. |
I solved this error by comparing my project to the new 0.57.0 version project and changed some files and reboot my PC |
I'm having this issue on any project with 0.57 rc3, starting from scratch or upgrading. |
I can confirm that this works with the latest
|
@pontusab When you say that “this works”, do you mean that you can reproduce the issue or that it’s gone away? I am still seeing this error with |
@haggholm had this issue |
after cache reset (react-native start --reset-cache) it worked for me also |
Looks resolved. |
I'm still has this issue in There is my
And the
|
@164738777 have you tried this if so, do you have a repo that reproduces this error that we could try it with ? |
Tried rc4 on my Windows 10 machine. Worked fine. Just the following 2 commands. react-native init MyApp2 --version 0.57.0-rc.4 Took a while to download a number of packages and finally run on my emulator. Reload works extremely fast compared to 0.55. Waiting for the final .057 release! |
Environment
Description
Reproducible Demo
Create RN project using react-native init using version 0.57.0-rc0
react-native run-android
kill the spawned bundler and relaunch using npm start to work around issue #20712
The text was updated successfully, but these errors were encountered: