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

Unhandled 'error' event when running yarn run haul start -- --platform ios #77

Closed
lucqui opened this issue Mar 31, 2017 · 2 comments
Closed

Comments

@lucqui
Copy link

lucqui commented Mar 31, 2017

Current Behavior

I get the error when running yarn run haul start -- --platform ios

events.js:163
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE 127.0.0.1:8081
at Object.exports._errnoException (util.js:1034:11)
at exports._exceptionWithHostPort (util.js:1057:20)
at Server._listen2 (net.js:1265:14)
at listen (net.js:1301:10)
at doListening (net.js:1416:7)
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
error Command failed with exit code 1.

Expected Behavior

It should run w/o errors.

Haul Configuration (webpack.haul.js)

module.exports = ({ platform }) => ({
entry: ./index.${platform}.js,
});

Your Environment

I'm running on a macbook and trying to run this react-native + redux project.

software version
Haul 0.21.3
react-native 0.42.3 (2.0.1 for the react-native-cli)
node v7.8.0
npm or yarn 4.2.0 (0.21.3 for yarn)
@satya164
Copy link
Member

Something else is running on the same port. Check for other instances of React Native packager or Haul running in another Terminal.

@skellock
Copy link
Contributor

EADDRINUSE 127.0.0.1:8081 probably means your react-native packager is running. Have a look through your open terminal windows. If you can't find it and you're still angry, sudo lsof -i :8081 and kill -9 <pid> will teach it a lesson.

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

3 participants