question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"--hot:" breaks bundle assembling

See original GitHub issue

Hot modules reloading mixes up module ids for some reason. The code I get in the bundle.js is the following:

    // load the styles
    var content = __webpack_require__(301);
    if(typeof content === 'string') content = [[module.id, content, '']];
    // add the styles to the DOM
    var update = __webpack_require__(303)(content, {});
    if(content.locals) module.exports = content.locals;
    // Hot Module Replacement
    if(true) {
        // When the styles change, update the <style> tags
        if(!content.locals) {
            module.hot.accept(301301, function() {
                var newContent = __webpack_require__(301);

Obviously I don’t have 301301 modules. The issue gets much worse with config.output.pathinfo = true. The code becomes broken:

// bundle.js:10086 Uncaught SyntaxError: missing ) after argument list
module.hot.accept(/*! !./../css-loader!./angular-material.css */ 301/*! !./../css-loader!./angular-material.css */ 301, function() {

My command line to start is: node node_modules/.bin/webpack-dev-server --content-base app --hot --port 9090

A part of package.json:

    "webpack": "1.13.1",
    "webpack-dev-server": "1.14.1"

If any additional information is required please don’t hesitate to ping me.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
sokracommented, Jun 2, 2016

Don’t use --hot and the HotModuleReplacmentPlugin.

3reactions
SpaceK33zcommented, Sep 3, 2016

@wips, this is documented in the docs, but I agree with you that it is still a bit too hard. I made #586 for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slice Engineering C-E Copperhead Heat Break Installation on ...
Step by step guide to installing the Slice Engineering bi-metal Copperhead heat break.New to the channel? Please consider subscribing ...
Read more >
Copperhead™ parts for assembling the new hotend from Slice ...
Copperhead™ hot-end elements to assemble the new elevated, optimized and adaptive ... Copperhead™ Heat Sinks are compatible with Standard Heat Break only!
Read more >
Breakbeats - Rhythm Lab | Free Wav Samples, Loops, Breaks ...
Here is my collection of vintage funk/soul breakbeats. All loops in wav quality (and not converted from mp3). Every break manually sliced (rex2), ......
Read more >
Creality Hot End Repair and Parts Guide for Ender 3, CR-10 ...
Follow steps 1-4 in the Hot End Assembly replacement guide to remove the existing hot end. Unscrew and detach the hot end cable...
Read more >
Drum Breaks: A Guide To Injecting Character into Your Music
A drum break is a short instrumental (often percussive) section of a song, aimed at building anticipation. It can also function as a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found