Estou com o seguinte erro após essa aula e não consegui resolver:
TypeError: C:/Users/lestivalet/Desktop/casadocodigo/app/views/produtos/lista.ejs:10 8|
10| <%for(var i=0;i 11|
Cannot read property 'length' of undefined at eval (eval at (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\ejs\lib\ejs.js:485:12), :13:26) at returnedFn (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\ejs\lib\ejs.js:514:17) at View.exports.renderFile [as engine] (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\ejs\lib\ejs.js:358:31) at View.render (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\express\lib\view.js:126:8) at tryRender (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\express\lib\application.js:639:10) at EventEmitter.render (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\express\lib\application.js:591:3) at ServerResponse.render (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\express\lib\response.js:960:7) at Query._callback (C:\Users\lestivalet\Desktop\casadocodigo\app\routes\produtos.js:7:8) at Query.Sequence.end (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\mysql\lib\protocol\sequences\Sequence.js:85:24) at Query.ErrorPacket (C:\Users\lestivalet\Desktop\casadocodigo\node_modules\mysql\lib\protocol\sequences\Query.js:94:8)