Created
October 20, 2018 10:47
-
-
Save danielfilho/5caa03eb56bf7011e4ec6165e97ea6f3 to your computer and use it in GitHub Desktop.
I had a problem that Gatsby develop mode (watch/compile) wasn't working properly. I found that exposing the env var `CHOKIDAR_USEPOLLING` as `1` make it work. This is the following script I use on a Windows 10 PC, running WSL with Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export CHOKIDAR_USEPOLLING=1 | |
./node_modules/.bin/gatsby develop --host localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment