Using koa-view to build project app.use () requires a generatorfunction error

  node.js, question

Use koa to make a simple web project, and its project structure is as follows:
图片描述

Usenode --harmony app.jsWhen running the project, the console reported an error.

Ask the Great God for guidance. Is there a problem?

图片描述

Visual inspection shows that koa-views does not support the function *(next) {} syntax.

Because it returns the function(ctx ,next) method.

Look directly at the source code, as if there is not much code. ^_^