question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught RangeError: Maximum call stack size exceeded

See original GitHub issue

Hey all,

I am using webpack-dev-middleware and webpack-hot-middleware and I’m using the setup in my plugins.

                new webpack.HotModuleReplacementPlugin(),

                new ReactRefreshWebpackPlugin({
                    overlay: false
                }),

and the HMR seems to work fine as it is updating the content in the browser but I am getting the following error every time I change a file.

[HMR] Updated modules: process-update.js?e135:127 [HMR] - ./ClientApp/components/shared/Header.jsx process-update.js?e135:132 [HMR] App is up to date. client.js?58a8:241 [HMR] bundle rebuilding client.js?58a8:250 [HMR] bundle rebuilt in 466ms process-update.js?e135:51 [HMR] Checking for updates on the server… bootstrap:1068 Uncaught RangeError: Maximum call stack size exceeded at hotAddUpdateChunk (bootstrap:1068) at webpackHotUpdateCallback (bootstrap:7) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) at webpackHotUpdateCallback (bootstrap:8) . . .

I have found a few issues around Github (below) suggesting that I shouldn’t enable --hot option for the WDS together with the HotModuleReplacementPlugin, but I am using WHM.

Is there anything I am missing here that I should disable with webpack-dev-middleware for this to not happen?

I have checked that I only have a single webpack module included in the project. `-- webpack@4.44.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
hasandogucommented, Apr 26, 2021

@terrencejames I actually attached it to an environment variable and removed the 2nd copy of the HMR if that env variable was set.

PS: I was actually in the middle of an upgrade from .Net Core 3.1 to .Net 5, where the Javascript services and node services don’t work anymore. I took the opportunity to switch to using Razzle instead at the end so that we don’t manage the react refresh plugin directly anymore.

2reactions
pmmmwhcommented, Apr 25, 2021

@terrencejames This error will be gone in the next version of the plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
Uncaught RangeError: Maximum call ... - Net-Informations.Com
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >
JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >
RangeError: Maximum call stack size exceeded - Educative.io
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >
How to fix: "RangeError: Maximum call stack size exceeded"
A "RangeError: Maximum call stack size exceeded" is an error that occurs when a function or operation tries to execute too many nested...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found