-
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 'ReactComponentTreeHook.purgeUnmountedComponents()') #16898
Comments
Even I had this issue. Fixed it by updating my 'react-native' version to '0.50'. |
ok, I will try that. |
@kckunal2612 how can I update my react-native? a command please |
In your project's root directory, there would be a "package.json" file. In there, there would be a dependencies block like this - "dependencies": { In case you don't have version 0.50 here, you can change the version value for 'react-native' and then run the command 'npm-update' from the terminal. This will update the node-modules directory as well (update contents for this module). |
ok |
Got the same error here. I'll keep up and any news I bring here |
Hello guys.
As soon as I installed react@16.0.0-alpha.12 instead, the problem was solved. Apparently facebook has removed the function ReactComponentTreeHook.purgeUnmountedComponents from the code, it is not to be used It helped me too. |
I was facing the same issue after going to react-native version 0.50 issue resolved |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Is this a bug report?
(I don't know but it seems to be)
Have you read the Contributing Guidelines?
(Yes)
Environment
Steps to Reproduce
()
Expected Behavior
(Write what you thought would happen.)
Actual Behavior
(I deleted the node_module then i installed used the npm install after i run the app using react-native run-android then i got the error
)
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: