react-native-svg: 7.1.2
Looking for JS files in
C:\Users\dev**
Loading dependency graph, done.
::ffff:127.0.0.1 - - [15/Oct/2018:17:05:48 +0000] "GET /onchange HTTP/1.1" - - "-" "okhttp/3.11.0"
error: bundling failed: Error: Unable to resolve module ../lib/PATTERN_UNITS from C:\Users\dev\**\node_modules\react-native-svg\elements\Pattern.js: The module ../lib/PATTERN_UNITS could not be found from C:\Users\dev\**\node_modules\react-native-svg\elements\Pattern.js. Indeed, none of these files exist:
C:\Users\dev\**\node_modules\react-native-svg\lib\PATTERN_UNITS(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)C:\Users\dev\**\node_modules\react-native-svg\lib\PATTERN_UNITS\index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)Seems you have some caching issues. Try
watchman watch-del-all
rm -fr $TMPDIR/react-*
npm start -- --reset-cache
Or,
rm -rf node_modules
npm i
npm start -- --reset-cache
v7.1.2 doesn't have the import your error refers to, it imports from "../lib/units" instead of "../lib/PATTERN_UNITS":
https://github.com/react-native-community/react-native-svg/blob/v7.1.2/elements/Pattern.js#L5
Most helpful comment
Seems you have some caching issues. Try
Or,
v7.1.2 doesn't have the import your error refers to, it imports from "../lib/units" instead of "../lib/PATTERN_UNITS":
https://github.com/react-native-community/react-native-svg/blob/v7.1.2/elements/Pattern.js#L5