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
Error: Unable to resolve module `react-native/Libraries/Components/View/ViewStylePropTypes #424
Comments
Have you got any solution? i am also facing same issue |
I am facing the same issue after update npm. |
same here at "react": "16.5.0", |
hi, i presume you guys are using expo, try matching the RN version https://docs.expo.io/versions/latest/sdk/ hope it helps |
the same problem, try with the versions of the example of Restaurant and it worked for me: |
I have a similar problem with a freshly generated app with react-native-cli
Is there any solution or prediction for this fix? I would really like to use Shoutem, but I'm not willing to downgrade versions to do it... |
Some things broke with versions >= 0.58.x. |
It is problem with react-native-linear-gradient. But shoutem must update react-native-render-html too for "^4.1.1" ver., now there "3.10.0" and there is the same problem with proptypes as react-native-linear-gradient. Solution for me - using react-native <0.58 |
Im using this script unless guys fix it fix.sh file
and in package.json
|
Thanks! Works perfectly with "@shoutem/ui": "^0.23.16", |
Facing same issue still after adding |
I solved this issue by manually copy and pasting missing files to the respective folders. Same solution as @vko-online except I did it manually. copied ./node_modules/react-native/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js copied ./node_modules/react-native/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js copied ./node_modules/react-native/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js to ./node_modules/react-native/Libraries/Image/. File name changed to ImageStylePropTypes.js |
Using the fix mentioned by @Auggysg and @vko-online worked for me. "@shoutem/ui": "^0.23.20", |
In case you want to see what works with what follow the release notes of expo i.e. sdk 32: |
This fix doesn't work for me after RN 0.61.2 update. Has anyone this problem too? "@shoutem/ui": "^0.23.12", |
me too. |
I think we should import deprecated file itself and dont use the fix.sh script anymore. |
Do you think we should use this method? |
Method you mentioned worked with RN < 60, after this version it seems that these files are updated and inside these files other Deprecated files are imported in another way. (for example inside DeprecatedViewStylePropTypes.js the |
I'm adding them one by one as RN gives me the Edit: It worked! |
I have been having this issue since morning and I have tried every way possible and I can't get it resolved. please let me know how I can get it fixed. /Users/flatironschool/Folder/Practice-react-native/node_modules/react-native/Libraries/StyleSheet/processColor.js And here is my package.json { |
I had more luck with this in the fix.sh file:
|
Any update about how to fixed it in react-native 0.60.x ? |
I am using Expo SDK33 and still not works |
Any update about how to fix it ? I got this issue when I'm trying to add react-native-web to existing react-native project.
|
When using RN > 0.60, the above scripts won't work because the react internals have explicitly changed to error on accessing the legacy PropTypes. To fix this, you can patch Ultimately shoutem dependencies need to be updated to versions of libraries that no longer require them, or use the correct deprecated package directly. |
Error: Unable to resolve module
react-native/Libraries/Components/View/ViewStylePropTypes
from/home/avinash/Kinre/kinreAdmin/node_modules/react-native-render-html/src/HTMLUtils.js
: Modulereact-native/Libraries/Components/View/ViewStylePropTypes
does not exist in the Haste module mapThe text was updated successfully, but these errors were encountered: