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.

Unable to resolve module './patternReg' from lib/extract/extractProps.js

See original GitHub issue

I’m getting a confusing error trying to use react-native-svg on a project.

Unable to resolve "./patternReg" from "node_modules/react-native-svg/lib/extract/extractProps.js" (this is from the expo bundler)

It seems weird since extractProps.js seems to have no mention of patternReg.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
JulianKingmancommented, Jan 31, 2019

Add this to your scripts to remove extra react-native-svg packages:

"cleanRNSVG": "find ./node_modules -type d -mindepth 2 -name react-native-svg -exec rm -rf {} \\;",

When running expo, make sure to restart and clear cache (shift-r)

0reactions
MrShakescommented, Jul 26, 2019

watchman watch-del-all && rm -fr $TMPDIR/react-* && npm start -- --reset-cache did it for me, basically reset cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Unable to resolve "./patternReg" from "node_modules/react-native-svg/lib/extract/extractProps.js" (this is from the expo bundler) It seems ...
Read more >
3 - Stack Overflow
Unable to resolve "./patternReg" from "node_modules\react-native-svg\lib\extract\extractProps.js. now how to solve this problem? Thanks in ...
Read more >
Error: Unable to resolve module `util` – Split Help Center
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
Read more >
Search - appsloveworld
Coding example for the question Unable to resolve "./patternReg" from "node_modules\react-native-svg\lib\extract\extractProps.js-React Native.
Read more >
MongoDB Atlas App Services & Realm
Fresh Setup: Realm React Native Error: Unable to resolve module `./subscription` from `node_modules/realm/lib/browser/index.js` · XCode 11.3.1 ...
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