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

TypeError: Cannot read property 'movie' of undefined

TypeError: Cannot read property 'movie' of undefined
   at /Users/apple/Creative/tutorial/nodejs_mongodb/app.js:123:20
   at Layer.handle [as handle_request] (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/layer.js:95:5)
   at next (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/route.js:137:13)
   at Route.dispatch (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/route.js:112:3)
   at Layer.handle [as handle_request] (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/layer.js:95:5)
   at /Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:281:22
   at Function.process_params (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:335:12)
   at next (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:275:10)
   at serveStatic (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/serve-static/index.js:75:16)
   at Layer.handle [as handle_request] (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/layer.js:95:5)
   at trim_prefix (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:317:13)
   at /Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:284:7
   at Function.process_params (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:335:12)
   at next (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/index.js:275:10)
   at expressInit (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/middleware/init.js:40:5)
   at Layer.handle [as handle_request] (/Users/apple/Creative/tutorial/nodejs_mongodb/node_modules/express/lib/router/layer.js:95:5)

有没有遇到过这种问题的同学?这个怎么处理?

正在回答

1 回答

就是调用movie的那个对象不存在啊!!

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

举报

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

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

进入课程

TypeError: Cannot read property 'movie' of undefined

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