nodeSolidServer / nodeSolidServer/node-solid-server

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

未关闭
#1,500 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.8k
派生
308
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 index.js:16 开始,检查堆栈跟踪中显示的 Express response.render 调用。将请求的 /pages/auth 视图与配置的视图目录 /home/devenock/Desktop/Node/authentication/views 进行比较。当服务器刷新时不再出现 failed-to-lookup-view 错误,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
express, javascript, nodejs
领域
backend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。