-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Cannot find module 'React' from 'ReactNativeDefaultInjection.js' #2155
Comments
I guess this error occured when system OS is Linux. |
Same issue with Travis CI since upgrading to :
This runs fine :
|
From what I can see React Native 0.38 asks you to use React 15.4.0 RC 4. Also related: #1840. |
@gaearon I have the same issue. react@~15.4.1 actually resolves to React 15.0.4-rc.4 right now so this is not the issue... |
@gaearon When run |
@Richard-Cao look at this #1840 (comment) You could try react-15.4.0-rc.2 as a temporary solution. |
Adding As another (slightly better) workaround, I'm adding this to
|
@donataswix there is another solution. I can say, "fix" :) |
I see
create by
What we should choose? |
@Richard-Cao I suppose, it depends on used
|
@ColCh Thx~ |
I'll update jest-react-native today to forward to react-native. I'm also updating Jest's documentation to hint that you won't need See #2182. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I run jest in Travis CI, get this error:
ERROR
My
package.json
:But on my local PC is right.
How to solve?
The text was updated successfully, but these errors were encountered: