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

Run-time simulator Error: Unable to resolve module socket.io-client/socket.io from [code directory]/RCTWebRTCDemo/main.js: #49

Open
cppiod opened this issue Mar 27, 2017 · 1 comment

Comments

@cppiod
Copy link

cppiod commented Mar 27, 2017

Unable to resolve module socket.io-client/socket.io from /Users/cpp/devworkspace/ReactNative/RCTWebRTCDemo/main.js: Module does not exist in the module map or in these directories:
/Users/cpp/devworkspace/ReactNative/RCTWebRTCDemo/node_modules/socket.io-client
, /Users/cpp/devworkspace/node_modules/socket.io-client
, /Users/cpp/node_modules/socket.io-client

This might be related to facebook/react-native#4968
To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start --reset-cache.
@kim-jikyung
Copy link

In /Users/cpp/devworkspace/ReactNative/RCTWebRTCDemo/main.js:

before
import io from 'socket.io-client/socket.io';

after
import io from 'socket.io-client/dist/socket.io';

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

2 participants