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 `react-native-paystack-webView`

See original GitHub issue

I 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:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. 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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
eakenborcommented, Aug 17, 2020

Installing react-native-webview solved it for me. The instruction is actually hidden somewhere in the documentation. The owner should make it more visible.

0reactions
Gentlekboycommented, Nov 11, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

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