跳到主要内容
CNode

bluebird与mongoose结合报错 TypeError:count().then().nodeify is not a function

问答
TTHCloud发布于 10 年前最后回复 10 年前
241700

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)

T
THCloud#210 年前

Promise需要大写,完结

T
THCloud#110 年前

参与回复

登录后即可参与回复。登录