Unable to resolve module `react-native-paystack-webView`
See original GitHub issueI am getting this as an Error, trying to use the Demo i saw on the internet having followed a tut from youtube
The full Error is given thus :
error: Error: Unable to resolve module react-native-paystack-webView
from src\Payments.js
: react-native-paystack-webView could not be found within the project or in these directories:
node_modules
If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules: rm -rf node_modules and run yarn install
- Reset Metro’s cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-* at ModuleResolver.resolveDependency (D:\reacttut\nosdra\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:186:15) at ResolutionRequest.resolveDependency (D:\reacttut\nosdra\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (D:\reacttut\nosdra\node_modules\metro\src\node-haste\DependencyGraph.js:287:16) at Object.resolve (D:\reacttut\nosdra\node_modules\metro\src\lib\transformHelpers.js:267:42) at dependencies.map.result (D:\reacttut\nosdra\node_modules\metro\src\DeltaBundler\traverseDependencies.js:434:31) at Array.map (<anonymous>) at resolveDependencies (D:\reacttut\nosdra\node_modules\metro\src\DeltaBundler\traverseDependencies.js:431:18) at D:\reacttut\nosdra\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33 at Generator.next (<anonymous>) at asyncGeneratorStep (D:\reacttut\nosdra\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
react-native-paystack-webview - npm
This package allows you to accept payment in your react native project using paystack . Latest version: 4.0.3, last published: a year ago....
Read more >Stuck at bank auth screen · Issue #42 - GitHub
Great tutorial, please when I hit the save button, I got this error in my terminal; undefined Unable to resolve module react-native-paystack-webview from ......
Read more >Error: Unable to resolve module, could not be found within the ...
I noticed react-native-webview was not found in node_modules/ , so I did npm install react-native-webview . And it was fixed.
Read more >react-native-paystack-webview - npm package - Snyk
This package allows you to accept payment in your react native project using paystack For more information about how to use this package...
Read more >[Solved]-Unable to resolve module `react-native-reanimated`
Coding example for the question Unable to resolve module `react-native-reanimated`-React Native.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Installing react-native-webview solved it for me. The instruction is actually hidden somewhere in the documentation. The owner should make it more visible.
I had this same error with all required packages installed - Expo bare workflow (TypeScript). I solved it with the workaround below:
THIS
import { Paystack } from "react-native-paystack-webview/lib";
instead of
import { Paystack } from 'react-native-paystack-webview';
Pretty new to the react native ecosystem so I can’t exactly explain why it worked, but it did anyways. Lool