Relay: [Modern] Is relay-compiler --watch supposed to work?

Created on 20 Apr 2017  路  8Comments  路  Source: facebook/relay

$ relay-compiler --src ./src --schema schema.graphql --watch
TypeError: Cannot read property 'some' of undefined
    at hasWatchmanRootFile (/Users/andreas/Work/code/relay-modern-hello-world/node_modules/relay-compiler/bin/relay-compiler:208:29)
    at /Users/andreas/Work/code/relay-modern-hello-world/node_modules/relay-compiler/bin/relay-compiler:90:28
    at next (native)
    at step (/Users/andreas/Work/code/relay-modern-hello-world/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/andreas/Work/code/relay-modern-hello-world/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
    at Promise.F (/Users/andreas/Work/code/relay-modern-hello-world/node_modules/core-js/library/modules/_export.js:35:28)
    at /Users/andreas/Work/code/relay-modern-hello-world/node_modules/babel-runtime/helpers/asyncToGenerator.js:14:12
    at run (/Users/andreas/Work/code/relay-modern-hello-world/node_modules/relay-compiler/bin/relay-compiler:126:18)
    at Object.<anonymous> (/Users/andreas/Work/code/relay-modern-hello-world/node_modules/relay-compiler/bin/relay-compiler:164:2)
    at __webpack_require__ (/Users/andreas/Work/code/relay-modern-hello-world/node_modules/relay-compiler/bin/relay-compiler:33:30)

Most helpful comment

Fixed in b730ba3812124b7d69e94ceb59d35e1f94cdf51b. We'll have this out in the next RC

All 8 comments

I think you need to install watchman on windows and mac.

See #1644

@YasserKaddour that's not the problem, watchman is installed and working... Without watchman the compiler doesn't get this far.

Same problem here - looks like something gets messed up during the compilation of the sourcecode.

Same here, i've only been able to use it without --watch

Same problem here as well

fix on the way

Fixed in b730ba3812124b7d69e94ceb59d35e1f94cdf51b. We'll have this out in the next RC

When will this be published to npm?

Edit: Never mind, yarn add relay-compiler@dev --dev installed the latest RC3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jstejada picture jstejada  路  3Comments

sgwilym picture sgwilym  路  4Comments

scotmatson picture scotmatson  路  3Comments

fedbalves picture fedbalves  路  3Comments

luongthanhlam picture luongthanhlam  路  3Comments