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

TypeError: Cannot read property 'movies' of null

    events.js:183

          throw er; // Unhandled 'error' event

          ^


    TypeError: Cannot read property 'movies' of null

        at Category.findById (E:\PHP\my-move\app\controllers\movie.js:75:26)

        at E:\PHP\my-move\node_modules\mongoose\lib\model.js:4208:16

        at (anonymous function).call (E:\PHP\my-move\node_modules\mongoose\lib\query.js:3128:7)

        at model.Query.Query._completeOne (E:\PHP\my-move\node_modules\mongoose\lib\query.js:1479:12)

        at Immediate.Query.base.findOne.call (E:\PHP\my-move\node_modules\mongoose\lib\query.js:1535:10)

        at Immediate._onImmediate (E:\PHP\my-move\node_modules\mquery\lib\utils.js:119:16)

        at runCallback (timers.js:794:20)

        at tryOnImmediate (timers.js:752:5)

        at processImmediate [as _immediateCallback] (timers.js:729:5)


正在回答

1 回答

已经解决了,在admin.jade中有一处没有将catetory改为category


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

举报

0/150
提交
取消
node建站攻略(二期)——网站升级
  • 参与学习       51938    人
  • 解答问题       408    个

帮助你深入前后端开发留下的迷惑,为进一步自学打下基础

进入课程

TypeError: Cannot read property 'movies' of null

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