Index not loading
h
StefanGisi (2)

If I open my Express app in a new tab, I often get the following error.

How can I use my repl.it account as a portfolio for trying to get a job when my apps don't even load properly???

Error: Failed to lookup view "index" in views directory "/home/runner/views"
at Function.render (/home/runner/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/home/runner/node_modules/express/lib/response.js:1012:7)
at module.exports.index (/home/runner/routes/home/index.js:2:7)
at Layer.handle as handle_request
at next (/home/runner/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/runner/node_modules/express/lib/router/route.js:112:3)
at Layer.handle as handle_request
at /home/runner/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/runner/node_modules/express/lib/router/index.js:335:12)
at next (/home/runner/node_modules/express/lib/router/index.js:275:10)

You are viewing a single comment. View All
malvoliothegood (107)

Hi. Not sure about what is causing your problems because your app is not loading in repl.it for me. Have you considered using Glitch? It seems pretty heavily set up to use node. Have a read of this article: https://blog.bitsrc.io/introduction-to-glitch-for-node-js-apps-in-the-cloud-cd263de5683f

StefanGisi (2)

@malvoliothegood Thanks for the idea. Great man! I'll check it out and let you know how it goes. Stay good!