From aafc7ffc83f91f0351e6e0a5eabb884db0b5739f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= Date: Mon, 9 Sep 2019 03:54:33 +0200 Subject: [PATCH] Update troubleshooting.md (#7459) --- docusaurus/docs/troubleshooting.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docusaurus/docs/troubleshooting.md b/docusaurus/docs/troubleshooting.md index 10ca720c6af..20cd65519aa 100644 --- a/docusaurus/docs/troubleshooting.md +++ b/docusaurus/docs/troubleshooting.md @@ -9,6 +9,7 @@ sidebar_label: Troubleshooting When you save a file while `npm start` is running, the browser should refresh with the updated code.
If this doesn’t happen, try one of the following workarounds: +- Check that your file is imported by you entrypoint. TypeScript will show errors on any of your source files, but webpack only reloads your files if they are directly or indirectly imported by one of your entrypoints. - If your project is in a Dropbox folder, try moving it out. - If the watcher doesn’t see a file called `index.js` and you’re referencing it by the folder name, you [need to restart the watcher](https://github.com/facebook/create-react-app/issues/1164) due to a Webpack bug. - Some editors like Vim and IntelliJ have a “safe write” feature that currently breaks the watcher. You will need to disable it. Follow the instructions in [“Adjusting Your Text Editor”](https://webpack.js.org/guides/development/#adjusting-your-text-editor).