-
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
Can't run the project after upgrading to 0.26 #7679
Comments
Please check if your Component is imported from 'react-native' or 'react' package. |
+1 already migrate like that but still encounter same issue |
Thanks for the guidance. As @dattran92 and @MichaelDanielTom mentioned changing Thing is I am using some dependencies which are not compatible with |
I am getting same error after upgrding 0.26 . Did anybody solve the error? |
Same problem while upgrading to 0.26 |
@rushabh1191 @KevinHu2014 did you start importing React from |
@cubbuk yes, I import React from |
I had to delete the |
It seems we need to downgrade to previous version and fix all 'deprecated' warning. So I downgrade to RN 0.25, run it, and get yellow-box error 'Warning: ReactNative.XX is deprecated. Use React.XX from "react" package instead'. I have make sure my codebase have been migrated like @cubbuk said. I guess there are some packages in node_modules still access Yellow-box error just show warning message. I really confused what's file I need to be fixed. And it's VERY difficult to check 100++ folders in node_modules and manually edit those one-by-one. Upgrade all packages didn't resolve an issue if some packages still not change codebase. |
Is it possible to get some kind of error dump? After upgrading to 0.26.1 now my app crashes immediately with: 2016-05-23 18:44:27.591 [error][tid:com.facebook.react.JavaScript] Requiring module "183", which threw an exception. Googling SO tells me it means there's an error in my bundle, but I have no idea what it is because the app immediately crashes. I've literally spent about 6 hours upgrading React today from 0.24 to 0.26.1. What a PIA this is. |
I'm having the same problem, but with a different cause: #7722 |
Search in node_modules and in your app-source folder for Component, PropType imports from react-native. Regex: |
Thanks for the trick, @duketwo! It should work on some case. I have trying search file content using your Regex pattern by Sublime Text (of course I enable Regex pattern), but nothing. FYI, I have inspect some files on node_modules, and got something like this:
So, it's hard to detect by using Regex pattern. PS: Does anyone know how to force yellow-box to assume as red-box? I think I can get related files by seeing stack trace on red-box error. |
Same problem while upgrading to 0.26.I upgrade the version the yesterday, it works normally .But this problem happened just now. I don't know why. |
I'm having the same issue but with the Getting Started project and a brand new 0.26 installation. |
Looks like something like npm install solved this. I'm clear now. |
Why couldn't RN tell exactly which file(s) caused this error. In my case, after all the migration, I got: I guess it's some dependencies not compatible with new version of RN, but it's hard for me to pin point which one.. |
@kkgelu enabling debug mode will give you more information. But I'm struggling with |
In my case it was because of the breaking change of That shall be change you shall be able to find-replace in all your components in the codebase. also, all node_modules can be upgraded to their latest version that supports RN |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/cant-run-the-project-after-upgrading-to-026 Product Pains has been very useful in highlighting the top bugs and feature requests: Also, if this issue is a bug, please consider sending a pull request with a fix. |
After upgrading react native to 0.26.1 I started getting the following error for an adroid project running on Ubuntu:
If I try to run using emulator I get the following error:
I followed the tips on the following issue #7336 and upgraded react to 15.0.2 but didn't help me either. Are there anyone who encountered this error?
Thanks
The text was updated successfully, but these errors were encountered: