show warning when using HMR incorrectly

fixed #480