-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[StackOverflow] Uncaught RangeError: Maximum call stack size exceeded #136
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
Comments
From @despairblue on November 3, 2015 23:1 This happens when starting the dev server with |
From @despairblue on November 3, 2015 23:6 This also leads to things like: if (module.hot) {
module.hot.accept('./App', function () {
require('./App')
})
} compiling into: if (true) {
module.hot.accept(230230, function () {
__webpack_require__(230);
});
} |
From @despairblue on November 3, 2015 23:15 Only using one of them does also not work. If only using |
From @despairblue on November 3, 2015 23:30 Ok I found a combination that worked:
Is this intended behaviour? If yes, should there be something in the documentation warning about this? If no, should there be some guards catching these cases? |
From @damionvega on March 3, 2016 23:30 We're using npm scripts to run webpack and came across the same problem. This is very confusing. Thanks @despairblue |
From @imrvelj on April 30, 2016 14:43 Happens to me also. Thanks @despairblue for the quick fix. |
From @Delagen on June 9, 2016 8:7 +1 |
From @theoutlander on August 2, 2016 3:28 @despairblue Thanks for the detailed follow-up and solution! |
Side note, we are working on better config validation in webpack-dev-server that should prevent issues like this: webpack/webpack-dev-server#615. |
Yeah, closing. Thanks. |
/content/concepts/entry-points.md 校对
From @despairblue on November 3, 2015 19:39
What happens is that after a successful hot reload, webpackHotUpdateCallback keeps calling hotAddUpdateChunk which returns immediately since
hotAvailibleFilesMap[0] === true
buthostRequestedFilesMap[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 asetTimeout
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
The text was updated successfully, but these errors were encountered: