我正在尝试使用“ google”策略添加身份验证中间件,并遇到以下错误。在这里很难找到问题所在。
尽管如此,我正在按照完全相同的步骤进行操作 https://www.youtube.com/watch?v=nK6fkNShhGc
每当添加身份验证中间件时,都会弹出此错误。
请在https://github.com/athulmurali/jamnjam-backend.git上找到我的代码
错误:
Error: Failed to lookup view "error" in views directory "/Users/athulmuralidharan/webDev/project/jamnjam-server/views"
at Function.render (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/response.js:1008:7)
at /Users/athulmuralidharan/webDev/project/jamnjam-server/app.js:40:7
at Layer.handle_error (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:315:13)
at /Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:335:12)
at next (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:315:13)
at /Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:275:10)
at Immediate.<anonymous> (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:635:15)
at runCallback (timers.js:757:11)
at tryOnImmediate (timers.js:717:5)