jlongster / monkey-hot-loader

A webpack loader to hot reload JavaScript modules
171 stars 11 forks source link

Uncaught RangeError: Maximum call stack size exceeded #1

Closed NikGovorov closed 9 years ago

NikGovorov commented 9 years ago

Hi,

First of all, thank you for the cool loader, nice job.

I've just tried to test it in a browser environment and got the following stackoverflow/recursion error:

Uncaught RangeError: Maximum call stack size exceeded
webpackHotUpdateCallback @ bundle.js:5
webpackHotUpdateCallback @ bundle.js:6
webpackHotUpdateCallback @ bundle.js:6
webpackHotUpdateCallback @ bundle.js:6
webpackHotUpdateCallback @ bundle.js:6
webpackHotUpdateCallback @ bundle.js:6
...

Doesn't look like it interrupts the hot module replacement, but happens every HMR iteration.

NikGovorov commented 9 years ago

Apparently it's webpack's HRM issue, that just easier to spot with hot-monkey-loader.

NikGovorov commented 9 years ago

It happened because I included HotModuleReplacementPlugin in plugins section while using webpack-dev-server via cli with already specified --hot argument.