CNode

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

问答
TTHCloud发布于10 年前最后回复10 年前2 回复4139 浏览0 收藏

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#1·10 年前
T
THCloud#2·10 年前

Promise需要大写,完结

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