-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TypeError: Cannot read property 'on' of undefined #182
Comments
Hi! Thanks for the detailed report! I'm not able to reproduce this on a fairly similar environment, so I suspect some local state is at play. Could you please try deleting your project's |
Removing .expo worked after a second try (didn't work for the first time), thanks for your quick tip! Its much faster to run 'npm run ios' then running the whole thing in XDE. The error in question pops up as soon Ctrl+C, there is some background process not liking it! |
|
@ickma - can you give some information about your environment? I've never seen this problem before.
|
@brentvatne I got the same issue when
This is from a clean React Native project following the basic tutorial from scratch. |
Same issue as @davidhellsing, pressing ctrl-c will show the error. I also tried deleting my node_modules folder and reinstall everything but the error still shows up. I have to delete the .expo file every time I do development.
|
I'm running into this issue on a recently created project. Error outputs look like those shared by @davidhellsing. This project is being run on two machines. The issue affects one machine, but not the other. The setups look like: Machine 1 (shutdown errors present)
Machine 2 (no shutdown errors)
I'm wondering if any of the differentiating factors b/t these two machines (yarn presence, use of nvm, macOS version, watchman) are significant? (edited to provide more detail about watchman install differences) |
we can't repro this. if someone who has a repro case can clone the repo and experiment with fixing it that would be much appreciated |
Just a hacky way, not sure if this is a fix. In tree-kill module - index.js change in the onClose method. change: if (code != 0) { |
Description
https://facebook.github.io/react-native/blog/2017/03/13/introducing-create-react-native-app.html
npm run ios
, launched iOS simulator with the example pagenpm run ios
, got the below errorExpected Behavior
See above steps
Observed Behavior
Error occurred running
npm run ios
the second timeEnvironment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
: [email protected]npm ls react-native
:[email protected]npm ls expo
:[email protected]
└── UNMET PEER DEPENDENCY react@>=15.3.1
npm ERR! peer dep missing: react@>=15.3.1, required by [email protected]
npm ERR! peer dep missing: react@>=15.4.0, required by [email protected]
npm ERR! peer dep missing: react@>=15.4.0, required by [email protected]
node -v
:v7.0.0npm -v
:3.10.8yarn --version
: using npmwatchman version
:"4.7.0"Also specify:
Reproducible Demo
https://github.com/cliren/crna_sample
The text was updated successfully, but these errors were encountered: