Broken after upgrading React Native to 0.58: "Unable to resolve module react-native/Libraries/Image/ImageSourcePropType"
See original GitHub issueIt can’t resolve an import referenced in this library.
error: bundling failed: Error: Unable to resolve module `react-native/Libraries/Image/ImageSourcePropType` from `{../..}/my-app/node_modules/react-native-svg/elements/Image.js`: Module `react-native/Libraries/Image/ImageSourcePropType` does not exist in the Haste module map
Seems like they moved or removed the file.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
"Unable to resolve module react-native/Libraries/Image ...
Broken after upgrading React Native to 0.58: "Unable to resolve module react-native/Libraries/Image/ImageSourcePropType" #917.
Read more >Unable to Resolve Module in React Native App - Stack Overflow
I was losing the will to live over this error, RN telling me that an imported file ./Foo did not exist when it...
Read more >Optimizing Performance - React
Optimizing Performance. Internally, React uses several clever techniques to minimize the number of costly DOM operations required to update the UI. For many ......
Read more >How to Upgrade to React 18
In this post, we will guide you through the steps for upgrading to React 18. Please report any issues you encounter while upgrading...
Read more >React v16.8: The One With Hooks
Hooks won't work if you forget to update, for example, React DOM. React Native will support Hooks in the 0.59 release.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Proptypes have been removed since v8 was released on 19 Oct 2018: https://github.com/react-native-community/react-native-svg/pull/805
@msand thanks for the reply, I switched to v9 now and it works. But still maybe the compatibility section of the docs should be updated.