插入数据时报错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)