This repository was archived by the owner on Apr 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Webpack 4 compatibility #37
Copy link
Copy link
Closed
Description
Hi, I can't use the css-hot-loader
with webpack@4
because I'm getting this error message: Uncaught TypeError: Cannot read property 'call' of undefined
.
This is the webpack code that is failling:
// Execute the module function
modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
The modules[moduleId]
is undefined
and the moduleId
value is ./node_modules/css-hot-loader/hotModuleReplacement.js
.
I don't know which webpack's breaking change is the cause of this error.
This is the webpack's function where this error comes:
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {},
/******/ hot: hotCreateModule(moduleId),
/******/ parents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),
/******/ children: []
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
Versions
node@6
[email protected]
[email protected]
Metadata
Metadata
Assignees
Labels
No labels