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
Unable to resolve module react-native/Libraries/StyleSheet/ColorPropType.js
#356
Comments
works for me. are you sure you don't have some stale yarn cache or something? |
It works now. Thanks for fixing |
I didn't do anything 😂 |
@radex in |
ah, just saw the PR to remove the prop types, ignore me :) |
Hey guys, @topwebtek and @radex, am having this issue in version 0.58.0 and have not been able to fix it. What could be responsible? I have done |
copy this file
to this location
then rename it to ColorPropType.js (remove Deprecated) this should fix the issue |
OK thanks so much. But the problem is that I dont build locally. I use app center to automate my build process |
Definitely not a long term fix. |
yeah, not a longterm fix definitely. I tried upgrading to |
Yeah, there's a lot of bugs in React Native 0.58.x (x<=3), and I raised an issue over that. Let's hope it becomes stable in the near future. Thanks so much |
@radex Should this issue be re-opened? That module has been deprecated. |
@KevinColemanInc You're right. PropTypes are dead, long live Flow types. I started doing the work to remove PropTypes from this library in this PR: https://github.com/react-native-community/react-native-linear-gradient/pull/364/files … but I don't have the time right now to finish it. @KevinColemanInc @nwaughachukwuma @Nualiian @dlferro @frodoe7 Is any of you willing to pick up the work? There's not much to do there… just clean up and test on iOS and Android that nothing is broken. Then we can merge it and release and update that will fix it once and for all |
Flow and PropTypes are dead. TypeScript is where it's at. Anyhow, do we have a temporary fix that would fix build servers? Cannot copy stuff manually. |
@voidstarfire See the comment above. The fix is fairly straightforward — remove PropTypes altogether and copy over updated Flow types (see #364). Please send a qiuck PR and I will merge and release today if it looks good :) |
Heya thanks for the reply. Production pipelines do things from scratch (IE, yarn install), I'd have to create a little script and add it to multiple steps :-D a lotta work. I just downgraded for now, RN 57. I'm glad there's a PR waiting great :-) |
With the update of RN, I hope to solve this problem as soon as possible. |
I'm having this issue as well. Is there still not a fix that doesn't require messing around with the |
Yes, I'm eagerly anticipating this fix as well. |
This error disappeared once I upgraded to react-native 0.59.4 and react-native-linear-gradient 2.5.4 Should this be closed? |
Looks like 2.5.4 works for me too |
Some for me, updated |
Updating to 2.5.4 changed my error to:
|
edit index.android.js and save , or delete all content of the index.android.js and recover , i fixed it |
Unable to resolve module
react-native/Libraries/StyleSheet/ColorPropType.js
inreact-native-linear-gradient/index.ios.js
andreact-native-linear-gradient/index.android.js
with latest React-Native v0.57.3The text was updated successfully, but these errors were encountered: