Skip to content

[StackOverflow] Uncaught RangeError: Maximum call stack size exceeded #136

Closed
@pksjce

Description

@pksjce

From @despairblue on November 3, 2015 19:39

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

What happens is that after a successful hot reload, webpackHotUpdateCallback keeps calling hotAddUpdateChunk which returns immediately since hotAvailibleFilesMap[0] === true but hostRequestedFilesMap[0] === false.

I also can't find a place where parentHotUpdateCallback is unset, so I don't see how this circle could ever be broken? Is this used for polling? Then a setTimeout could at least reset the stack.

But maybe I'm missing something here.

Thanks for working on this and making things like hot module replacement possible!

Copied from original issue: webpack/webpack#1583

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions