Giter Club home page Giter Club logo

Comments (6)

budarin avatar budarin commented on May 25, 2024 3

it needs something like this

// discovery fo server option for webpack-serve server
      if (options.serve) {
        // it uses add hook to add any to
        const originalAdd = options.serve.add;

        options.serve.add = (app, middleware, options) => {
          app.use((ctx, next) => errorOverlayMiddleware(ctx.req, ctx.res, next));

          if (originalAdd) {
            originalAdd(app, middleware, options)
          }
        }
      }

into index.js

Can't push the commit - something with permissions :(
This does not solve the problem, but gives you a nice error picture in browser's console

from error-overlay-webpack-plugin.

gregberge avatar gregberge commented on May 25, 2024 2

Could someone fix it in a PR?

from error-overlay-webpack-plugin.

amertak avatar amertak commented on May 25, 2024 1

@neoziro
Webpack-serve is now [DEPRECATED] so I suggest not to fix this anymore and move away from webpack-serve back to webpack-dev-server.

from error-overlay-webpack-plugin.

gregberge avatar gregberge commented on May 25, 2024

Right now I am not on it, but all PR are welcome!

from error-overlay-webpack-plugin.

budarin avatar budarin commented on May 25, 2024

I have the problem on webpack-serve too
It's definitely due to the difference for registering middleware for koa.js and express.js
and due to diff declaration dev server in webpack options: 'serve' against 'devServer'

from error-overlay-webpack-plugin.

victorfern91 avatar victorfern91 commented on May 25, 2024

There is any update regarding this problem?

from error-overlay-webpack-plugin.

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.