Skip to content

Instantly share code, notes, and snippets.

@danielfilho
Created October 20, 2018 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielfilho/5caa03eb56bf7011e4ec6165e97ea6f3 to your computer and use it in GitHub Desktop.
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
#!/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