Error: Unable to resolve module `./components/TouchableRipple` from `node_modules\react-native-paper\src\index.tsx`:
See original GitHub issueCurrent behaviour
Hello, when I run, after compiling before starting I get that error I have tried installing modules returning versions but it does not disappear “react-native-paper”: “^4.0.1”, “react-native-safe-area-context”: “^3.1.4”, “react-native-screens”: “^2.10.1”, “react-native-reanimated”: “^1.13.0”, “@react-native-community/masked-view”: “^0.1.10”,
error: Error: Unable to resolve module ./components/TouchableRipplefromnode_modules\react-native-paper\src\index.tsx`:
None of these files exist:
node_modules\react-native-paper\src\components\TouchableRipple(.native|.android.jsx|.native.jsx|.jsx|.android.js|.native.js|.js|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.json|.native.json|.json) node_modules\react-native-paper\src\components\TouchableRipple\index(.native|.android.jsx|.native.jsx|.jsx|.android.js|.native.js|.js|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.json|.native.json|.json) at ModuleResolver.resolveDependency`
Expected behaviour
Code sample
complete log error: Error: Unable to resolve module ./components/TouchableRipplefromnode_modules\react-native-paper\src\index.tsx`:
None of these files exist:
node_modules\react-native-paper\src\components\TouchableRipple(.native|.android.jsx|.native.jsx|.jsx|.android.js|.native.js|.js|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.json|.native.json|.json) node_modules\react-native-paper\src\components\TouchableRipple\index(.native|.android.jsx|.native.jsx|.jsx|.android.js|.native.js|.js|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.json|.native.json|.json) at ModuleResolver.resolveDependency (C:\Developement\reactnativeapp\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15) at ResolutionRequest.resolveDependency (C:\Developement\reactnativeapp\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (C:\Developement\reactnativeapp\node_modules\metro\src\node-haste\DependencyGraph.js:287:16) at Object.resolve (C:\Developement\reactnativeapp\node_modules\metro\src\lib\transformHelpers.js:267:42) at C:\Developement\reactnativeapp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:434:31 at Array.map () at resolveDependencies (C:\Developement\reactnativeapp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:431:18) at C:\Developement\reactnativeapp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33 at Generator.next () at asyncGeneratorStep (C:\Developement\reactnativeapp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)`
Screenshots (if applicable)
What have you tried
I have tried installing modules returning versions but it does not disappear I also tried giving it npm update and installing it newer but still
Your Environment
software | version |
---|---|
ios or android | android |
react-native | 0.63.3 |
react-native-paper | 4.2.0 |
node | v12.18.3 |
npm | 6.14.8 |
expo | 39.0.3 |
react-native-vector-icons | 7.1.0 |
idont use expo
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8
Top GitHub Comments
try using react-native-paper@3.6.0 It worked for me
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.