From 415c165de14b922ea28c6a0d1aa4e49b38663c8e Mon Sep 17 00:00:00 2001 From: Alexander James Phillips Date: Wed, 22 Feb 2017 17:34:58 +0000 Subject: [PATCH] Update troubleshooting HMR to allow for VMs running Windows --- packages/react-scripts/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 169bbd8c786..19a6a931549 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1452,7 +1452,7 @@ If this doesn’t happen, try one of the following workarounds: * 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 [“Working with editors supporting safe write”](https://webpack.github.io/docs/webpack-dev-server.html#working-with-editors-ides-supporting-safe-write). * If your project path contains parentheses, try moving the project to a path without them. This is caused by a [Webpack watcher bug](https://github.com/webpack/watchpack/issues/42). * On Linux and macOS, you might need to [tweak system settings](https://webpack.github.io/docs/troubleshooting.html#not-enough-watchers) to allow more watchers. -* Inside virtual machines such as (a Vagrant provisioned) VirtualBox, [use `CHOKIDAR_USEPOLLING=true npm start`](https://github.com/facebookincubator/create-react-app/issues/1049#issuecomment-261731734). +* Inside virtual machines such as (a Vagrant provisioned) VirtualBox, use `npm i --save-dev cross-env` and then [`cross-env CHOKIDAR_USEPOLLING=true npm start`](https://github.com/facebookincubator/create-react-app/issues/1049#issuecomment-261731734). If none of these solutions help please leave a comment [in this thread](https://github.com/facebookincubator/create-react-app/issues/659).