mike-works / pwa-fundamentals

👨‍🏫 Mike & Steve's Progressive Web Fundamentals Course
https://frontendmasters.com/courses/progressive-web-apps/
Other
270 stars 117 forks source link

Production build errors out: Uncaught Error: [HMR] Hot Module Replacement is disabled. #52

Open amite opened 6 years ago

amite commented 6 years ago

I am working on Challenge One Solution from the FEM course and am trying to run the production build but the commands shown seem to have changed. The run script is no longer valid as indicated by the message.

So when I run a production build with npm run build:prod

And then try to serve it with serve dist/ -T, the server starts up on https://localhost:5000 but the build does not run.

Instead, I get the error: Uncaught Error: [HMR] Hot Module Replacement is disabled.

Here is what my browser console looks like:

screen shot 2017-12-27 at 5 28 21 pm

Do I need to disable module hot reloading somehow?

alxmllr commented 6 years ago

Remove line 12 ('webpack-hot-middleware/client',) from webpack.config.js.