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

Unable to resolve module (engine.io-client) In window OS #1113

Closed
GeekRishabh opened this issue May 16, 2017 · 10 comments
Closed

Unable to resolve module (engine.io-client) In window OS #1113

GeekRishabh opened this issue May 16, 2017 · 10 comments

Comments

@GeekRishabh
Copy link

engine io
[x] report a bug

Current behaviour

When i tried to run the React native project with socket.io-client as dependency . Error is shown in Window OS .while In MAC and in Linux the app works fine without any issue .

Expected behaviour

App should work fine in Windows Os too .

Setup

  • OS: Android/IOS
    -project Type: React Native (CRNA)
  • "socket.io-client": "^1.7.3"
  • "react": "~15.4.0",
  • "react-native": "0.42.0",
@dazilee7
Copy link

hey! i just met the same problem today,and i just solved it by copying the xmlhttprequest.js file in engine.io-client\lib to engine.io-client\lib\transports, and then change require('xmlhttprequest') to require('./xmlhttprequest') in all files in engine.io-client\lib\transports. Hope it works for you!

@GeekRishabh
Copy link
Author

@dazich Thanks for the hack .but this cannot be a permanent solution to this issue .

@darrachequesne
Copy link
Member

@GeekRishabh it seems the browser field is not handled properly in react-native. Could you please open an issue in their repository?

@gavin-gmlab
Copy link

Faced this issue too!
My version of engine.io has require ('xmlhttprequest-ssl'), so I had to change it to require ('xmlhttprequest'), but after that it says document not defined in polling-jsonp.js
(This is all in react-native)

@constantinosergiou
Copy link

guys anyone figure out a solution ?

@ThalesMatoso
Copy link

npm install engine.io-client

@constantinosergiou
Copy link

i try it before and is not working

@pdarii
Copy link

pdarii commented Oct 27, 2017

I had the similar, issue when i made checkout of existing project.
I run npm -i, all dependency's were installed, but this error appears:

" Can't resolve 'engine.io-client' "

Was fixed by installing socket.io-client.

npm i socket.io-client

@andikare
Copy link

umm anyone figure out a solution ?

@darrachequesne
Copy link
Member

Closed due to inactivity, please reopen if needed.

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

8 participants