Tive um problema depois que a minha conexão com a internet caiu, o ejs precisa de conexão com a internet ou algum outro módulo? Quando a conexão voltou o erro sumiu.
TypeError: C:\Users\Gisele\Documents\Alura\Node\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\Gisele\Documents\Alura\Node\casadocodigo\node_modules\ejs\lib\ejs.js:491:12), :11:28) at returnedFn (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\ejs\lib\ejs.js:520:17) at View.exports.renderFile [as engine] (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\ejs\lib\ejs.js:374:31) at View.render (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\express\lib\view.js:126:8) at tryRender (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\express\lib\application.js:639:10) at EventEmitter.render (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\express\lib\application.js:591:3) at ServerResponse.render (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\express\lib\response.js:960:7) at Query._callback (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\app\routes\produtos.js:9:17) at Query.Sequence.end (C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\mysql\lib\protocol\sequences\Sequence.js:86:24) at C:\Users\Gisele\Documents\Alura\Node\casadocodigo\node_modules\mysql\lib\protocol\Protocol.js:399:18