Ask coding questions

← Back to all posts
Index not loading
StefanGisi (3)

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

How can I use my 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)

malvoliothegood (362)

Hi. Not sure about what is causing your problems because your app is not loading in for me. Have you considered using Glitch? It seems pretty heavily set up to use node. Have a read of this article:

StefanGisi (3)

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