`hotDownloadManifest` in `JsonpMainTemplate.runtime.js` does not return a promise and causes exception
See original GitHub issueDo you want to request a feature or report a bug? Report a bug.
What is the current behavior? Hot module reloading doesn’t work.
When hot reloading modules in our React Chrome extension, the HMR runtime invokes hotDownloadManifest
in JsonpMainTemplate.runtime.js
, which is causing an exception to be thrown.
This begun occurring immediately after upgrading to webpack 2 from v1.13.0.
If the current behavior is a bug, please provide the steps to reproduce. The problem can be summarised as follows:
lib/HotModuleReplacement.runtime.js
:hotCheck
always expectshotDownloadManifest
to accept a timeout parameter and to return a promise.lib/JsonpMainTemplate.runtime.js
:hotDownloadManifest
here expects acallback
(no timeout) and does not return a promise.
What is the expected behavior? Hot module replacement works as expected.
If this is a feature request, what is motivation or use case for changing the behavior? N/A
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System. node 6.11.0 webpack 3.2.0 Linux 4.8.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
I found this:
https://github.com/jhen0409/react-chrome-extension-boilerplate/blob/master/webpack/replace/JsonpMainTemplate.runtime.js
Ha, that was it! That was definitely the culprit. Thanks for your help, Tobias!