WHM support breaks projects that do not have it installed
See original GitHub issueAfter upgrading to 0.2.0, I noticed the following error:
ERROR in ./node_modules/@pmmmwh/react-refresh-webpack-plugin/src/runtime/WHMEventSource.js
Module not found: Error: Can't resolve 'webpack-hot-middleware/client' in '[...]/node_modules/@pmmmwh/react-refresh-webpack-plugin/src/runtime'
I believe this is because webpack sees this require
when bundling the injected runtime code:
And therefore tries to resolve and bundle that module. This code path isn’t taken when a WDS client has been injected, but webpack doesn’t know this at bundle time. My project doesn’t use WHM so that module doesn’t exist on my machine.
As a temporary workaround, installing WHM (npm i -D webpack-hot-middleware
) fixes the issue.
/cc @blainekasten
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:11 (6 by maintainers)
Top Results From Across the Web
How to Fix Quotas
Run the mount command without any arguments to obtain basic information about all your currently-mounted file systems.
Read more >Troubleshoot Your Installation
This document describes how to troubleshoot problems with your cPanel & WHM installation.
Read more >FIX FOR 'The last attempt to update cPanel & WHM was ...
Time by time, new features are added and it requires from space then the initial release. cPanel can reduce disk limit but it...
Read more >Can i upgrade iptables on WHM server?
Hello, on my CentOS 6.x 64 openVZ based VPS where is WHM installed, i have "iptables -v": iptables v1.3.5 and i have Config...
Read more >Allow users to install websites from version control
This .gitignore file is basically for cpanel stuff, you can add another to the public_html directory to ignore project files. Git supports multiple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still getting this issue while using webpack dev server 3.8.1.
Here are my dev-server options:
This makes most sense to me. Don’t try to guess it on the client, but let the user pick one statically in config.