react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

Unable to resolve module '../lib/props'

Open pavelkeyzik opened this issue 8 years ago • 15 comments

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

pavelkeyzik avatar Nov 09 '18 11:11 pavelkeyzik

Seems like your node_modules folder is corrupted, try deleting it and npm i again

msand avatar Nov 09 '18 13:11 msand

Seems like your node_modules folder is corrupted, try deleting it and npm i again

I tried this and also I cleared cache but it doesn't help me. After all steps, I get a problem like #814.

pavelkeyzik avatar Nov 09 '18 15:11 pavelkeyzik

Have you tried React 16.6.0?

lachtos avatar Nov 09 '18 16:11 lachtos

Have you tried React 16.6.0?

Do you think it will help me? I think the problem with installation because I can't find props file in the lib.

pavelkeyzik avatar Nov 09 '18 17:11 pavelkeyzik

I'm not sure but I remember having the same problem when upgrading react-native-svg. I am on [email protected] and [email protected] and it works fine.

lachtos avatar Nov 09 '18 17:11 lachtos

I closed this issue because may it's the problem on my machine if other haven't this error

pavelkeyzik avatar Nov 12 '18 14:11 pavelkeyzik

I'm having the same issue with:

OS: Ubuntu 18.04.1 LTS React-Native-Svg: 8.0.8 React-Native: 0.57.5 React: 16.6.3

I've tried clearing the npm cache and removing the node_modules directory and reinstall the modules and I still get this error

phenixrizen avatar Nov 13 '18 19:11 phenixrizen

I'm having the same issue with:

  • React-Native-Svg: 8.0.8
  • React-Native: 0.57.1
  • React: 16.5.0

DavidKk avatar Nov 18 '18 09:11 DavidKk

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

DavidKk avatar Nov 19 '18 05:11 DavidKk

Seems like local caching issues. Closing...

msand avatar Dec 09 '18 01:12 msand

Same issue with:

  • react-native-svg: 9.3.3
  • react: 16.8.3
  • react-native: 0.59.0

Cleaning cache or reinstalling node_modules don't help...

EDIT: @msand Problem solved. I think new packager doesn't work well cleaning cache... I've got this line inside my package.json: "start": "node node_modules/react-native/local-cli/cli.js start -- --reset-cache", but it's not working as expected... I think i had to do: react-native start --reset-cache to make it work. Anyway it was a cache problem, as everyone said. Thx a lot guys!

marcorm avatar Mar 14 '19 00:03 marcorm

@marcorm I have it working fine in a clean react-native init at least, can you make a repro?

msand avatar Mar 14 '19 02:03 msand

Had the same issue, fixed by:

react-native unlink react-native-svg && react-native link react-native-svg

martincarrera avatar Apr 05 '19 17:04 martincarrera

Yup resetting the cache worked

Rutheniceye92 avatar Jun 01 '19 10:06 Rutheniceye92

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 :)

parth-koshta avatar Nov 27 '19 07:11 parth-koshta