Olá!
Na aula 2, parte 4, depois que organizei as rotas, ao fazer uma requisição, recebo o seguinte erro:
TypeError: View is not a constructor
at EventEmitter.render (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\application.js:570:12)
at ServerResponse.render (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\response.js:1008:7)
at C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\app\routes\produtos.js:3:13
at Layer.handle [as handle_request] (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\index.js:335:12)
at next (C:\Users\Allef\Dropbox\Node_js\casa_do_codigo\node_modules\express\lib\router\index.js:275:10)
Por que isso ocorre? (Meu código está exatamente igual ao do instrutor)