Encountering an error when the browser reaches the following line in the "webpackified" app.js
file:
/******/ (function(modules) { // webpackBootstrap
/******/ function hotDisposeChunk(chunkId) {
/******/ delete installedChunks[chunkId];
/******/ }
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
The error is generated because this
is undefined in the last line of this snippet.
Despite this error message, the application appears to be running smoothly.
Uncertain about which parts of my webpack.config.js
are relevant, below are some possibly useful excerpts:
webpack.config.js
const HotModuleReplcement = new webpack.HotModuleReplacementPlugin();
...
module.exports = {
...
devServer: {
historyApiFallback: true,
hot: true,
inline: true,
port: 8000,
open: true,
proxy: [{
context: ['/assets', '/api'],
target: 'http://localhost:4000',
secure: false
}]
},
plugins: [HotModuleReplcement, HtmlWebpack]
};
Any insights on what might be causing this issue?