Closed iroy2000 closed 7 years ago
How was this resolved? I'm having the same problem
Hey, wanted to note for anyone else stumbling across this due to a search, the reason it wasn't working for me is because on the server I had node_modules
marked as externals, e.g:
nodeExternals({
whitelist: /(?:@mylib)/,
}),
but what I needed to do was also whitelist the HMR entrypoint:
nodeExternals({
whitelist: /(?:@mylib|webpack\/hot\/signal)/,
}),
Hope that helps the next poor soul! :heart:
I'm trying to follow the instruction here
webpack.config.server.dev.babel.js
''' entry: [ 'webpack/hot/signal.js', SERVER_ENTRY_POINT ],// ...
plugins: [ new webpack.HotModuleReplacementPlugin() ] '''
And I run this command
webpack --config webpack.config.server.dev.babel.js --watch
And seems like it is working
However, when I run this command
nodemon my-build/index.js -- watch
I got the following error ...
How can I resolve that issue? Thanks for any help.