nodkz / relay-northwind-app

A complex React, Relay, GraphQL demo app. Online demo:
https://nodkz.github.io/relay-northwind/
MIT License
103 stars 18 forks source link

On windows machine I'm got the below error for relay-modern #6

Open softglance opened 6 years ago

softglance commented 6 years ago

Relay Watcher was exited! { Error: spawn yarn ENOENT at _errnoException (util.js:1024:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickDomainCallback (internal/process/next_tick.js:218:9) code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn yarn', path: 'yarn', spawnargs: [ 'relay', '--', '--watch' ] } Relay Watcher was exited!

nodkz commented 6 years ago

Try to change https://github.com/nodkz/relay-northwind-app/blob/master/tools/startDevServers.js#L104

- const childProcess = spawn('yarn', ['relay', '--', '--watch'], {
+ const childProcess = spawn('npm', ['run', 'relay', '--', '--watch'], {

If it will work on your machine, please open PR with this fix. Tnx.

nodkz commented 6 years ago

Try to pull last changes from master and run them