I used the yo generator template described here to create an ASP.NET Core application with Angular2 as an interface. But randomly, after changing the css files and saving them (which cause Webpack to reboot), I got the following exception in the client console:
Uncaught ReferenceError: vendor_bd98b4ed288c6b156cc9 is not defined at Object.<anonymous> (external "vendor_bd98b4eā¦":1) at __webpack_require__ (bootstrap 4cd8e17ā¦:659) at fn (bootstrap 4cd8e17ā¦:83) at Object.module.exports (eventsource.js from dll-reference vendor_bd98b4eā¦:1) at __webpack_require__ (bootstrap 4cd8e17ā¦:659) at fn (bootstrap 4cd8e17ā¦:83) at Object.<anonymous> (main-client.js?v=4atoLMuOmZwmyVdq2ky2bYoBjkmqmVnuPNSIFOD8Qjs:2625) at __webpack_require__ (bootstrap 4cd8e17ā¦:659) at module.exports (bootstrap 4cd8e17ā¦:708) at bootstrap 4cd8e17ā¦:708
In the dist/main-client.js I found the following lines:
module.exports = vendor_bd98b4ed288c6b156cc9; }), (function(module, exports, __webpack_require__) { module.exports = (__webpack_require__(0))(0);
The error wwwroot/dist away when I delete the whole wwwroot/dist folder and rebuild the Webpack packages. Then the random string changes as follows:
module.exports = vendor_9dc79ae12948ed5e4b95;
It seems like a bit of caching. What can cause this?
I am using version 2.2.1 of Webpack.
source share