nodeSolidServer / nodeSolidServer/node-solid-server

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

Đang mở
#1,500 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
JavaScript
Star
1.8k
Fork
308
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu tại index.js:16 và kiểm tra lệnh gọi response.render của Express được hiển thị trong stack trace. So sánh view /pages/auth được yêu cầu với thư mục views đã cấu hình /home/devenock/Desktop/Node/authentication/views. Hoàn tất khi server refresh mà không có lỗi failed-to-lookup-view.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
express, javascript, nodejs
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.