Can't update in browser
stupid question: am i supposed to be able to make a change in the index.js file and see that change reflected in the browser out of the box (aka with no modifications to any of this code)?
I have the same issue too. Changes to js file not reflected to browser after refresh. Need to re run using npm start to get it work
Any solution? @StephenGrider
You can change the way your files are polled for changes by adding:
watchOptions: { poll: true }
to the webpack.config.js file inside of 'devServer' property of the 'config' object.
Followed your suggestion @StephenGrider and it doesn't seem to make a difference?
Also, if I do as above and use npm start I get thrown errors.
Finally got back to this tutorial XD adding watchOptions: { poll: true } fixed it! NOTE: I deleted the git files, restarted my computer (windows 10), and ran apt-get update on my "Bash on Ubuntu on Windows". Then I did a fresh pull of the repository and npm install/start
Just to throw in...I did this on MAC OSX....delete, reclone, reinstall but this time with watchOptions: { poll: true }....and it works great!
I was able to resolve this issue by changing the folder name where I cloned this repository. Issue was that my folder name contained spaces and brackets. I believe the web pack config file was not able to find the folder to recompile, hence having to restart every time. (Note: I am running on windows, realized problems can come from filenames with reserved characters in them)