koa-webpack-dev-middleware icon indicating copy to clipboard operation
koa-webpack-dev-middleware copied to clipboard

Wrong middleware signature

Open damianobarbati opened this issue 8 years ago • 2 comments
trafficstars

It should be:

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

This does not exist anymore and ctx is explicitly passed!

damianobarbati avatar Jul 12 '17 18:07 damianobarbati

I get same error @damianobarbati , please fix it.

yukunyi avatar Jul 28 '17 07:07 yukunyi

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

mattiasrunge avatar Jul 28 '17 07:07 mattiasrunge