版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26769677/article/details/80870513
1.ejs.compiled is not a function
将ejs.compiled(template) 中的compiled 改为compile。
2.handler is not defined
看看引用handler 的方法有没有传参,没有就给该方法传参:
module.exports = function(opts, handler){}