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

Can't resolve 'webpack/hot' #58

Open
reintroducing opened this issue Dec 14, 2018 · 0 comments
Open

Can't resolve 'webpack/hot' #58

reintroducing opened this issue Dec 14, 2018 · 0 comments

Comments

@reintroducing
Copy link

Hello,
I'm trying to use nodeExternals for a React app that has SSR and trying to get HMR working. In my server config I've added nodeExternals as such:

nodeExternals({whitelist: ['webpack/hot/dev-server']})

Unfortunately I'm subsequently seeing this error:

ERROR in (webpack)-dev-server/client?http://localhost:9000
    Module not found: Error: Can't resolve 'webpack/hot' in '/Users/mprzybylski/Desktop/ace-test/node_modules/webpack-dev-server/client'
     @ (webpack)-dev-server/client?http://localhost:9000 95:17-67
     @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js ./src/server.js

Have I set something up incorrectly? Any advice would be greatly appreciated.

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

No branches or pull requests

1 participant