为了账号安全,请及时绑定邮箱和手机立即绑定

插入数据时报错TypeError: Cannot set property 'isAsync' of undefined

插入数据时报错TypeError: Cannot set property 'isAsync' of undefined
   at model.module.exports.pre (e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\node_modules\hooks-fixed\hooks.js:127:20)
   at e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\lib\document.js:1828:17
   at Array.forEach (native)
   at e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\lib\document.js:1826:26
   at Array.forEach (native)
   at model.Document.$__registerHooksFromSchema (e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\lib\document.js:1792:23)
   at model.Document (e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\lib\document.js:76:8)
   at model.Model (e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\lib\model.js:42:12)
   at new model (e:\BaiduYunDownload\nodejs\imooc\node_modules\mongoose\lib\model.js:3069:11)
   at e:\BaiduYunDownload\nodejs\imooc\APP.js:101:12
   at Layer.handle [as handle_request] (e:\BaiduYunDownload\nodejs\imooc\node_modules\express\lib\router\layer.js:95:5)
   at next (e:\BaiduYunDownload\nodejs\imooc\node_modules\express\lib\router\route.js:131:13)
   at Route.dispatch (e:\BaiduYunDownload\nodejs\imooc\node_modules\express\lib\router\route.js:112:3)
   at Layer.handle [as handle_request] (e:\BaiduYunDownload\nodejs\imooc\node_modules\express\lib\router\layer.js:95:5)
   at e:\BaiduYunDownload\nodejs\imooc\node_modules\express\lib\router\index.js:277:22
   at Function.process_params (e:\BaiduYunDownload\nodejs\imooc\node_modules\express\lib\router\index.js:330:12)

正在回答

举报

0/150
提交
取消
node+mongodb 建站攻略(一期)
  • 参与学习       91860    人
  • 解答问题       889    个

带你完整实现一个从前端到后端的项目,初中级前端开发工程师必学课程

进入课程

插入数据时报错TypeError: Cannot set property 'isAsync' of undefined

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信