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
Seems like your node_modules folder is corrupted, try deleting it and npm i again
Seems like your node_modules folder is corrupted, try deleting it and
npm iagain
I tried this and also I cleared cache but it doesn't help me. After all steps, I get a problem like #814.
Have you tried React 16.6.0?
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.
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.
I closed this issue because may it's the problem on my machine if other haven't this error
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
I'm having the same issue with:
- React-Native-Svg: 8.0.8
- React-Native: 0.57.1
- React: 16.5.0
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
Seems like local caching issues. Closing...
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 I have it working fine in a clean react-native init at least, can you make a repro?
Had the same issue, fixed by:
react-native unlink react-native-svg && react-native link react-native-svg
Yup resetting the cache worked
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 :)