christianalfoni / webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express
MIT License
1.39k stars 291 forks source link

Error after webpack build in production #22

Closed jenil closed 8 years ago

jenil commented 8 years ago

I ran npm run build and started the sever. The console this error:

locals[0] does not appear to be a `module` object with Hot Module replacement API enabled. You should disable react-transform-hmr in production by using `env` section in Babel configuration.
Tmarty commented 8 years ago

What command are you using to start the server?

christianalfoni commented 8 years ago

Also need versions of Babel, node etc. here :-)

jenil commented 8 years ago

@christianalfoni sorry I fixed the issue somehow, I forgot to update here.