From c5a6a3ec87a02a5ece37610860f1c8ec50be5bb8 Mon Sep 17 00:00:00 2001 From: Daniel Holmes Date: Tue, 29 Aug 2017 15:55:29 +1000 Subject: [PATCH] README notice about multiple versions of GraphQL --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 81b63f6..f114459 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,13 @@ module.exports = { ``` 3. :tada: + +### Gotchas + +If there are multiple versions of GraphQL in your dependency tree it will cause schema validation errors. To get around +this, ensure you have the same graphql version as your relay-compiler version depends on. To assist this you can +[install dependencies as flat](https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-flat) which ensures only +one version of each dependency. ### TODOs