From 851ebf4a8b131f38d6d1a43250e24187d8647b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= Date: Thu, 1 Aug 2019 15:51:11 +0200 Subject: [PATCH 1/2] Update troubleshooting.md Save some time when you see an error, then fix it, but then your file is not reloaded. This may especially happen with CRA beginners, making the first experience a bit confusing. --- docusaurus/docs/troubleshooting.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docusaurus/docs/troubleshooting.md b/docusaurus/docs/troubleshooting.md index 10ca720c6af..6a7e226445f 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 and eslint will show errors on any file, 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). From f0ab4bb42541a1f71de555b80a2dff0a4ecce3b4 Mon Sep 17 00:00:00 2001 From: Ian Schmitz Date: Sun, 8 Sep 2019 18:54:00 -0700 Subject: [PATCH 2/2] Update troubleshooting.md Clarify --- docusaurus/docs/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/troubleshooting.md b/docusaurus/docs/troubleshooting.md index 6a7e226445f..20cd65519aa 100644 --- a/docusaurus/docs/troubleshooting.md +++ b/docusaurus/docs/troubleshooting.md @@ -9,7 +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 and eslint will show errors on any file, but webpack only reloads your files if they are directly or indirectly imported by one of your entrypoints. +- 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).