bluebird与mongoose结合报错 TypeError:count().then().nodeify is not a function
发布于 8 年前 作者 THCloud 3437 次浏览 来自 问答

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 回复

Promise需要大写,完结

回到顶部