luandro / hapi-universal-redux

DEPRECATED: Create an universal React and Redux app in less than 5 minutes!
https://hapi-universal-redux.herokuapp.com/
BSD 3-Clause "New" or "Revised" License
214 stars 24 forks source link

Upgrade to React Hot Loader #102

Open drouillard opened 8 years ago

drouillard commented 8 years ago

Attempt to address #99

I didn't remove the old hot loading module quite yet. Hot Loading did not work in general for me on OS X / Node V5 and V6 until I made this update. If this works for you feel free to merge. I can remove the old hot module reloading code with another PR. I tried originally but ran into some issues that I have since had trouble reproducing.

I also updated package.json to fix eslint config. The peer deps for Airbnb config were not being met.

drouillard commented 8 years ago

Seeing errors again on server - which is interesting since I made changes to client webpack

[HMR] Cannot apply update. [0] [HMR] Error: Aborted because 3 is not accepted

Server is having to restart to work. The client side hot reloading still seems to work? Will continue investigating

drouillard commented 8 years ago

Actually I am seeing the HMR errors on the server even on a fresh pulldown of this project before my commits. It still works, just seems to restart the server.

drouillard commented 8 years ago

For the linting errors I was seeing - similar issue

https://github.com/facebookincubator/create-react-app/issues/275

Looks like eslint in command line could work. I use mine via Atom editor plugin which requires explicit inclusion.