Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is shim ? #120

Open
pradeepsimba opened this issue Aug 23, 2022 · 0 comments
Open

what is shim ? #120

pradeepsimba opened this issue Aug 23, 2022 · 0 comments

Comments

@pradeepsimba
Copy link

I am new to reat-native.

I want to use http module in my project.

But , How can I use rn-nodeify ?.

What is shim ?

This is my project.

I add npm install @tradle/react-native-http in my project.

But , I have this error.

enter image description here

 [Error: undefined Unable to resolve module url from C:\Users\mahima\Desktop\react- 
native\httpmob\node_modules\@tradle\react-native-http\index.js: url could not be found within the project or in these directories:
  node_modules
  ..\..\..\node_modules
   6 | var EventEmitter = require('events').EventEmitter
   7 | var Request = require('./lib/request')
>  8 | var url = require('url')
     |                    ^
   9 | var defaults = {
   10 |     port: 80,
   11 |     protocol: 'http:']
 Error: Unable to resolve module url from C:\Users\mahima\Desktop\react- 
 native\httpmob\node_modules\@tradle\react-native-http\index.js: url could not be found within the project or in these directories:
  node_modules
  ..\..\..\node_modules
   6 | var EventEmitter = require('events').EventEmitter
   7 | var Request = require('./lib/request')
>  8 | var url = require('url')
     |                    ^
   9 | var defaults = {
  10 |     port: 80,
  11 |     protocol: 'http:'

How can I solve this error ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant