Cannot read property 'length' of undefined 都是each item in movies着出问题怎么解决
TypeError: G:\nodejs\views\pages\index.jade:6
4| .container
5| .row
> 6| each item in movies
7| .col-md-2
8| .thumbnail
9| a(href="/movie/#{item._id}")
Cannot read property 'length' of undefined
at eval (eval at <anonymous> (G:\nodejs\node_modules\jade\lib\index.js:218:8), <anonymous>:73:31)
at eval (eval at <anonymous> (G:\nodejs\node_modules\jade\lib\index.js:218:8), <anonymous>:194:4)
at eval (eval at <anonymous> (G:\nodejs\node_modules\jade\lib\index.js:218:8), <anonymous>:219:22)
at res (G:\nodejs\node_modules\jade\lib\index.js:219:38)
at Object.exports.renderFile (G:\nodejs\node_modules\jade\lib\index.js:380:38)
at Object.exports.renderFile (G:\nodejs\node_modules\jade\lib\index.js:370:21)
at View.exports.__express [as engine] (G:\nodejs\node_modules\jade\lib\index.js:417:11)
at View.render (G:\nodejs\node_modules\express\lib\view.js:128:8)
at tryRender (G:\nodejs\node_modules\express\lib\application.js:640:10)
at EventEmitter.render (G:\nodejs\node_modules\express\lib\application.js:592:3)
这么写的