-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
~~Anyone else receiving an error Uncaught RangeError: Maximum call stack size exceeded
after one hot reload?~~
#87
Comments
Uncaught RangeError: Maximum call stack size exceeded
after one hot reload?Uncaught RangeError: Maximum call stack size exceeded
after one hot reload?~~
Closing issue: just realised from here that you shouldn't be doing |
No required because we're defining HotReplacementModule in the config. More info here: webpack/webpack-dev-server#87
- Uncaught RangeError: Maximum call stack size exceeded for hot module reload
Ran into the same issue. Fixed by removing |
I've read about doing the exact opposite, and in the walkthrough linked in the readme suggests using the Plugin, but I also fixed this problem using the command line. |
Also: - Add Expire component; naming consistency - Don't use --hot and HotModuleReplacement() together webpack/webpack-dev-server#87 (comment) - Fix spacing between buttons
@chibicode work for me! |
Tried removing the plugin, didn't work. Removed |
tl;dr having both Commenting here ~5 years after this issue was first created, since this was confusing to debug and this issue thread is the first result on google for this error. I was confused because all the threads I can find seem to give conflicting information which doesn't fully match up with the official docs as of July 2019. The docs (currently) state:
Note that this doesn't mean that using both webpack-dev-server/lib/utils/addEntries.js Lines 94 to 101 in b79f523
v3.2.0 ). So why is there so much anecdotal evidence that removing one of --hot (or hot: true in the config) and the HotModuleReplacementPlugin solves the issue?
It's because if there's more than one copy of webpack installed in your project, depending on how you invoke webpack-dev-server, the linked code above may not work as intended. In my case, I had two copies of webpack installed:
which means that when that line of code above runs, it will check for In my case once I flatten my node_modules sufficiently (specifically: removing the top-level version of webpack that I don't need here, since In terms of fixes, the check in the code could avoid referencing the specific plugin constructor by switching to a name check or something like that (e.g. |
- Uncaught RangeError: Maximum call stack size exceeded for hot module reload
~~1. Load up a standard
webpack.config.js
, viawebpack-dev-server --config webpack.config.js --hot --progress --colors --host 0.0.0.0 --port 3000 --inline
If someone else has encountered this, then I might provide a more detailed writeup of (redacted) diagnostics/debug logs.~~
The text was updated successfully, but these errors were encountered: