From 3dfffd9d82c38bf8947d86ca0dfaed5bec8251f1 Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Sun, 5 Feb 2017 13:05:58 -0800 Subject: [PATCH] Adds instructions to run `flow init` Without this step, flow (0.38.0) complains it couldn't find a `.flowconfig` file in the directory. --- packages/react-scripts/template/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 2f4e2fdf1ef..ddf70393617 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -501,7 +501,8 @@ To add Flow to a Create React App project, follow these steps: 1. Run `npm install --save-dev flow-bin`. 2. Add `"flow": "flow"` to the `scripts` section of your `package.json`. -3. Add `// @flow` to any files you want to type check (for example, to `src/App.js`). +3. Run `npm run flow init`. +4. Add `// @flow` to any files you want to type check (for example, to `src/App.js`). Now you can run `npm run flow` to check the files for type errors. You can optionally use an IDE like [Nuclide](https://nuclide.io/docs/languages/flow/) for a better integrated experience.