📌  相关文章
📜  无法读取未定义的属性“长度” - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:00.650000             🧑  作者: Mango

代码示例3
TypeError: C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\views\movies.ejs:14    12|      

Search Result <%= searchQuery %>

   13| >> 14|     <% for (let i = 0; i < data.results.length; i++){ %>    15|    16|        
   17|            
Cannot read property 'length' of undefined    at eval (eval at compile (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\ejs\lib\ejs.js:662:12), :13:41)    at movies (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\ejs\lib\ejs.js:692:17)    at tryHandleCache (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\ejs\lib\ejs.js:272:36)    at View.exports.renderFile [as engine] (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\ejs\lib\ejs.js:489:10)    at View.render (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\express\lib\view.js:135:8)    at tryRender (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\express\lib\application.js:640:10)    at Function.render (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\express\lib\application.js:592:3)    at ServerResponse.render (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\express\lib\response.js:1012:7)    at Request._callback (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\app.js:38:9)    at Request.self.callback (C:\Users\Hamza\Desktop\projects\eduonix\Movie__App\node_modules\request\request.js:185:22)