nodeSolidServer / nodeSolidServer/node-solid-server

Failed to lookup view "/pages/auth" in views directory "/home/devenock/Desktop/Node/authentication/views"

Open
#1,500 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

This happens when i try to refresh my browser after running the server in my Nodejs application.

Error: Failed to lookup view "/pages/auth" in views directory "/home/devenock/Desktop/Node/authentication/views"
at Function.render (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/response.js:1012:7)
at /home/devenock/Desktop/Node/authentication/index.js:16:9
at Layer.handle [as handle_request] (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/layer.js:95:5)
at next (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/layer.js:95:5)
at /home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/index.js:335:12)
at next (/home/devenock/Desktop/Node/authentication/node_modules/express/lib/router/index.js:275:10)

Any quick fix for this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at index.js:16 and inspect the Express response.render call shown in the stack trace. Compare the requested /pages/auth view with the configured views directory /home/devenock/Desktop/Node/authentication/views. Done means the server refreshes without the failed-to-lookup-view error.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, nodejs
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.