Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Error: doesn't export content error every even rebuild #604

Closed
kostasmanionis opened this issue Aug 16, 2017 · 0 comments
Closed

Error: doesn't export content error every even rebuild #604

kostasmanionis opened this issue Aug 16, 2017 · 0 comments

Comments

@kostasmanionis
Copy link
Contributor

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.

screen shot 2017-08-16 at 15 32 28

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants