Error: doesn't export content error every even rebuild #604
Description
I'm experiencing an issue where every even build throws this error in the console. By every even build
I mean Initial build -> Error thrown -> Rebuild Sucessful -> Error thrown -> Rebuild Sucessful
. The error is only visible in the browser console.
Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (entryA.js:20)
at Object.<anonymous> (entryA.js:9526)
at __webpack_require__ (entryA.js:20)
at Object.<anonymous> (entryA.js:9564)
at __webpack_require__ (entryA.js:20)
at Object.defineProperty.value (entryA.js:9555)
at __webpack_require__ (entryA.js:20)
at module.exports.ctor.super_ (entryA.js:63)
at entryA.js:66
It basically tries to require a module with an id
that doesn't exist.
Here's an older issue that also describes the problem #42. Seems that @sokra correctly described what's going on #42 (comment). There's various fixes proposed there, though AFAIK this is the only one that really works is #42 (comment).
I've set up a repo with a reproducible use case https://github.com/kostasmanionis/extract-text-plugin-rebuild-bug
Versions used:
"css-loader": "^0.28.4",
"extract-text-webpack-plugin": "^3.0.0",
"style-loader": "^0.18.2",
"webpack": "^3.5.4",
"webpack-dev-server": "^2.7.1"
Here's a very minimal dependency graph that is able to reproduce this issue.