bluebird与mongoose结合报错 TypeError:count().then().nodeify is not a function
 发布于 9 年前  作者 THCloud  3999 次预览  最后一次回复是 9 年前  来自 问答 

TypeError: username.create(...).then(...).nodeify is not a function TypeError: username.create(...).then(...).error is not a function

已经引入了bluebird mongoose.promise = require('bluebird') 但是并不好用 不涉及到mongoose的操作时候,nodeify函数跟error函数都好用

如何解决这个问题?

2 回复
THCloud

Promise需要大写,完结