Max Rozen

How to fix 'rule is not a function' error

June 15, 2018 • ☕️ 1 min read

We recently had this really descriptive error at work: rule is not a function

The error boils down to Facebook engineers breaking compatibility with graphql 0.12.x in certain versions of Relay.

The fix

Bump your GraphQL and Relay versions - in package.json we set our versions to:

  • graphql to 0.13.2
  • relay to 1.6


If this post helped you, I'd really appreciate a share on Twitter.

Max Rozen

Thoughts on the Web.