webpackHotUpdate currentUpdate is undefined #14873
Replies: 7 comments 37 replies
-
|
Please create reproducible test repo |
Beta Was this translation helpful? Give feedback.
-
|
try to remove the globalObject: 'this' setting from output |
Beta Was this translation helpful? Give feedback.
-
|
Hello @alexander-akait @lihancong , we are seeing similar error in our react project as well after I modify my code in .tsx file and after HMR reloads the page. We are not using globalObject: 'this' setting in the output object. Please check for the error below The error is coming from jsonp chunk loading: ) Looks like variable currentUpdateRuntime, currentUpdate are both undefined. Other relevant information: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @vankop @alexander-akait I've come across this whilst learning about Webpack, going through the guide near verbatim. I've created a reproducible repo here: https://github.com/f3ndot/webpack-currentupdate-undefined Let me know if you need more information or to try stuff in the repo |
Beta Was this translation helpful? Give feedback.
-
|
@f3ndot <html>
<head>
<meta charset="utf-8">
<title>TypeScript Playground</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script defer src="index.bundle.js"></script><script defer src="print.bundle.js"></script>
</head>
<body>
</body>
</html>Note both entrypoints are presented in html file and that is wrong.. You can setup html plugin to create html file per entrypoint |
Beta Was this translation helpful? Give feedback.
-
|
I stumbled across this problem too, not a typical setup, but just in case it helps someone else, this is what happened:
It turns out that Filtering those files fixed everything ✌️ |
Beta Was this translation helpful? Give feedback.
-
|
I am hitting this error. I have multiple entry points, and very simple service worker entry point. But using |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
What is the current behavior?
when modify app.vue, then refresh page, there will be an error:
after check, it is currentUpdate is undefined:
And to compare with webpack4, it is
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
I would expect that when currentUpdate is undfined, return.
Other relevant information:
webpack version: 5.64.3
Node.js version: v12.19.0
Operating System: OS
Additional tools: vue3.0
Beta Was this translation helpful? Give feedback.
All reactions