Giter Site home page Giter Site logo

Comments (6)

sokra avatar sokra commented on May 1, 2024

Any idea what's going on?

No idea. Are you using webpack-hot-middleware or webpack-dev-middleware?

from webpack-dev-middleware.

terebentina avatar terebentina commented on May 1, 2024

Both, in a pretty standard way:

if (process.env.NODE_ENV == 'development') {
    const devConfig = require('./webpack.config.dev');
    const testConfig = require('./webpack.config.test');
    const testsCompiler = webpack(testConfig);

    testsCompiler.watch({}, (err) => {
        if (err) {
            return console.log(err);
        }
        console.log('Test file bundled');
    });

    const compiler = webpack(devConfig);
    app.use(require('webpack-dev-middleware')(compiler, {
        noInfo: true,
        publicPath: devConfig.output.publicPath,
        stats: { colors: true },
    }));

    app.use(require('webpack-hot-middleware')(compiler, {
        log: console.log,
        path: '/__webpack_hmr',
        heartbeat: 10 * 1000,
    }));
}

Only non-standard thing is that I am using restify instead of express

from webpack-dev-middleware.

gogoout avatar gogoout commented on May 1, 2024

+1, same with my restify. Had to change to webpack-dev-server

from webpack-dev-middleware.

0xMarkian avatar 0xMarkian commented on May 1, 2024

Is there any fix on this problem?

from webpack-dev-middleware.

SpaceK33z avatar SpaceK33z commented on May 1, 2024

Do you also have this problem without webpack-hot-middleware?

from webpack-dev-middleware.

SpaceK33z avatar SpaceK33z commented on May 1, 2024

I'm closing this issue because of inactivity. Feel free to comment, and we can always re-open it again.

This looks very much like a webpack-hot-middleware error, but if anyone can provide a simple repo so I can reproduce it I'm willing to help you.

from webpack-dev-middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.