Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Relay Compiler 1.6.0 Rule Error #2428
installed the latest 1.6.0 with relay compiler fixes I was hoping to use and ran into a cryptic error that looks like it's a bug in the compiler script after logging "Writing js" in the CodegenRunner.js file and attempting to validate the validation rules in ASTConvert.js. The problem looks like missing functions in the validation rules, the error output I'm receiving is "rule is not a function". I've double checked my schema and src inputs and both look ok, I'm not sure where the rule's schema function is being set to undefined, hoping to get some help in tracing it further. I'm unable to generate any Query or Mutation files at this time using 1.6.0.
Source Code Line Error
$ relay-compiler --src ./src --schema ./env/schema.graphql
Command Line Error Result
Debugged Console Log Output for Variable "validationRules"
[ [Function: FragmentsOnCompositeTypes],
What version of
Mind testing if that project also breaks for you? https://github.com/relayjs/relay-examples/tree/master/todo
That project's using email@example.com btw.
I am getting this error as well after updating to 1.6, however I don't have Graphql installed as a node module. We have our backend written in Go. We are using the latest for that as well:
Should I revert my packages for Relay or am I doing something wrong?
Hmm.. That changed the error to:
Our code has been working pre 1.6 (we have been using 1.3 in production), so I'm not sure why this error would appear with no context. The docs didn't look to have any breaking changes relevant to us. Do you have any insight you can give @sibelius?