From 60a833e6ea8fffd900b515b4bd0970293f0069c9 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Mon, 20 Apr 2020 19:53:33 +1100 Subject: [PATCH] Document the file field crash issue on node 13 (#2780) --- packages/fields/src/types/File/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/fields/src/types/File/README.md b/packages/fields/src/types/File/README.md index 1a4088a407e..85a8210492a 100644 --- a/packages/fields/src/types/File/README.md +++ b/packages/fields/src/types/File/README.md @@ -8,6 +8,16 @@ title: File Support files hosted in a range of different contexts, e.g. in the local filesystem, or on a cloud based file server. +> **Important:** As of this writing (April 2020), an upstream [issue](https://github.com/apollographql/apollo-server/issues/3508) with `apollo-server`'s dependencies can cause a server crash when using this field (regardless of adapter) with **Node 13 only**. To work around this, use Node 12 or below _or_ add the following to your `package.json`: +> +> ```js title=package.json +> "resolutions": { +> "graphql-upload": "^10.0.0" +> } +> ``` +> +> You can track this issue [here](https://github.com/keystonejs/keystone/issues/2101). + ## Usage ```js