node.js - 使用koa-view搭建项目app.use() requires a generator function错误
大家讲道理
大家讲道理 2017-04-17 15:03:58
0
2
740

使用koa来做一个简单的web项目,自己的项目结构如下:

使用node --harmony app.js运行项目的时候,控制台报错

求大神指导那里有问题?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
PHPzhong

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

Because it returns function(ctx,next) method.

Looking directly at the source code, there doesn’t seem to be much code. ^_^

黄舟

. . . . . . Hen

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template