react-native-svg: Unable to resolve module '../lib/props'

Hey guys. I have some problem with Rect element.

error: bundling failed: Error: Unable to resolve module "../lib/props" from "\node_modules\react-native-svg\elements\Rect.js": The module "../lib/props" could not be found from "\node_modules\react-native-svg\elements\Rect.js".

OS: Windows 10 React-Native-Svg: 8.0.8 React-Native: 0.57.1 React: 16.5.1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15

Most upvoted comments

I’m having the same issue with:

  • React-Native-Svg: 8.0.8
  • React-Native: 0.57.1
  • React: 16.5.0
$ watchman watch-del-all
$ rm -fr $TMPDIR/react-*
$ npm start -- --reset-cache

it works

Error: Unable to resolve module ../lib/ extract/extractClipPath from /Users/apple/GHack/G-BAT/gbatuiprod/node_modules/react-native-svg/src/elements/ClipPath.tsx: The module ../lib/extract/extractClipPath could not be found from /Users/apple/GHack/G-BAT/gbatuiprod/node_modules/react-native-svg/src/elements/ClipPath.tsx.

I got the same issue today and npm start – --reset-cache worked. Thanks 😃