npm server crashes on each js error #946

Closed
subpublic opened this Issue Apr 21, 2015 · 8 comments

Comments

Projects
None yet
5 participants
@subpublic

Running v0.4.0 my mpn server crashes on every js error.
I need to re-run the xcode project each time.

Crashing gives

Opening /Users/subpublic/Documents/jobb/rnd/rnd_node/react-native/Tryout/node_modules/react-native/node_modules/react-tools/src/classic/element/ReactElementValidator.js with subl
execvp(): No such file or directory
 ERROR  spawn ENOENT
{"code":"ENOENT","errno":"ENOENT","syscall":"spawn"}
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
Process terminated. Press <enter> to close the window
@mjw56

This comment has been minimized.

Show comment
Hide comment
@mjw56

mjw56 Apr 21, 2015

Contributor

Try upgrading flow and watchman to latest.

Contributor

mjw56 commented Apr 21, 2015

Try upgrading flow and watchman to latest.

@coderdave

This comment has been minimized.

Show comment
Hide comment
@coderdave

coderdave Apr 21, 2015

This happened to me quite a bit also on versions less than v0.4.0.

I noticed that if I click the "Reload JS" link on the bottom right of the red screen instead, it works fine.

This happened to me quite a bit also on versions less than v0.4.0.

I noticed that if I click the "Reload JS" link on the bottom right of the red screen instead, it works fine.

@aroth

This comment has been minimized.

Show comment
Hide comment
@aroth

aroth Apr 23, 2015

Contributor

+1

Contributor

aroth commented Apr 23, 2015

+1

@frantic

This comment has been minimized.

Show comment
Hide comment
@frantic

frantic Apr 24, 2015

Contributor

Good catch, sent a fix internally.

Btw, did you guys know that you can configure editor for React, and packager will open it when you click on stack trace? instructions

Contributor

frantic commented Apr 24, 2015

Good catch, sent a fix internally.

Btw, did you guys know that you can configure editor for React, and packager will open it when you click on stack trace? instructions

@frantic frantic closed this Apr 24, 2015

@coderdave

This comment has been minimized.

Show comment
Hide comment
@coderdave

coderdave Apr 25, 2015

I've tried both export EDITOR=atom and export REACT_EDITOR=atom in my .bashrc file but I still get the following error in the node terminal window when I click on one of the stack trace.
Opening /Users/coderdave/Documents/apps/MyApp/index.ios.js with subl
execvp(): No such file or directory
ERROR spawn ENOENT
{"code":"ENOENT","errno":"ENOENT","syscall":"spawn"}
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)

This then crashes the server and I have to restart.

It's still trying to open Sublime for some reason?

I've tried both export EDITOR=atom and export REACT_EDITOR=atom in my .bashrc file but I still get the following error in the node terminal window when I click on one of the stack trace.
Opening /Users/coderdave/Documents/apps/MyApp/index.ios.js with subl
execvp(): No such file or directory
ERROR spawn ENOENT
{"code":"ENOENT","errno":"ENOENT","syscall":"spawn"}
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)

This then crashes the server and I have to restart.

It's still trying to open Sublime for some reason?

@frantic

This comment has been minimized.

Show comment
Hide comment
@frantic

frantic Apr 26, 2015

Contributor

@coderdave - weird, do you use bash as your login shell? Try restarting your terminal, then open a new tab and run env | grep REACT_EDITOR.

Contributor

frantic commented Apr 26, 2015

@coderdave - weird, do you use bash as your login shell? Try restarting your terminal, then open a new tab and run env | grep REACT_EDITOR.

@frantic frantic reopened this Apr 26, 2015

@frantic frantic self-assigned this Apr 26, 2015

@coderdave

This comment has been minimized.

Show comment
Hide comment
@coderdave

coderdave Apr 26, 2015

It's working now. I had to add it to my .bash_profile file instead. Both export EDITOR=atom and export REACT_EDITOR=atom works.

Maybe the instructions need to be updated?

It's working now. I had to add it to my .bash_profile file instead. Both export EDITOR=atom and export REACT_EDITOR=atom works.

Maybe the instructions need to be updated?

@frantic

This comment has been minimized.

Show comment
Hide comment
@frantic

frantic Apr 28, 2015

Contributor

@coderdave please send a PR :)

Contributor

frantic commented Apr 28, 2015

@coderdave please send a PR :)

@frantic frantic closed this Apr 28, 2015

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.