yiminghe / koa-webpack-dev-middleware

webpack dev middleware for koa
92 stars 29 forks source link

Wrong middleware signature #18

Open damianobarbati opened 7 years ago

damianobarbati commented 7 years ago

It should be:

  async function koaMiddleware(ctx, next) {
    const { req } = ctx;

This does not exist anymore and ctx is explicitly passed!

yukunyi commented 7 years ago

I get same error @damianobarbati , please fix it.

mattiasrunge commented 7 years ago

I encountered this error as well, did a pull request to fix it (#19).