亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Movie.fetch is not a function 是什么原因?

TypeError: Movie.fetch is not a function
? ?at F:\Imooc\app.js:22:11
? ?at Layer.handle [as handle_request] (F:\Imooc\node_modules\express\lib\router\layer.js:95:5)
? ?at next (F:\Imooc\node_modules\express\lib\router\route.js:131:13)
? ?at Route.dispatch (F:\Imooc\node_modules\express\lib\router\route.js:112:3)
? ?at Layer.handle [as handle_request] (F:\Imooc\node_modules\express\lib\router\layer.js:95:5)
? ?at F:\Imooc\node_modules\express\lib\router\index.js:277:22
? ?at Function.process_params (F:\Imooc\node_modules\express\lib\router\index.js:330:12)
? ?at next (F:\Imooc\node_modules\express\lib\router\index.js:271:10)
? ?at SendStream.error (F:\Imooc\node_modules\express\node_modules\serve-static\index.js:120:7)
? ?at emitOne (events.js:77:13)
? ?at SendStream.emit (events.js:169:7)
? ?at SendStream.error (F:\Imooc\node_modules\express\node_modules\send\index.js:245:17)
? ?at SendStream.onStatError (F:\Imooc\node_modules\express\node_modules\send\index.js:356:12)
? ?at next (F:\Imooc\node_modules\express\node_modules\send\index.js:658:28)
? ?at F:\Imooc\node_modules\express\node_modules\send\index.js:666:23
? ?at FSReqWrap.oncomplete (fs.js:82:15)

正在回答

1 回答

可能是你的Schema目錄下的movie.js沒有將模式導出

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
node+mongodb 建站攻略(一期)
  • 參與學習       91827    人
  • 解答問題       921    個

帶你完整實現一個從前端到后端的項目,初中級前端開發工程師必學課程

進入課程

Movie.fetch is not a function 是什么原因?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號