question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken after upgrading React Native to 0.58: "Unable to resolve module react-native/Libraries/Image/ImageSourcePropType"

See original GitHub issue

It 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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
msandcommented, Jan 30, 2019

Proptypes have been removed since v8 was released on 19 Oct 2018: https://github.com/react-native-community/react-native-svg/pull/805

0reactions
c-goettertcommented, Sep 17, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found