Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amite opened this issue Dec 27, 2017 · 1 comment
Labels

Comments

@amite
Copy link

amite commented Dec 27, 2017

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
Copy link

alxmllr commented Feb 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants