Otherwise, some more of the error could be useful.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Thanks soo much sky for making the code easier to read.
I just tried your tip but it still gave me the same error.
Here are the rest of the error.
Error: No default engine was specified and no extension was provided.
at new View (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\view.js:61:11)
at Function.render (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\application.js:570:12)
at ServerResponse.render (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\response.js:1012:7)
at ServerResponse.res.render (C:\Users\HP\Desktop\node_passport\node_modules\express-ejs-layouts\lib\express-layouts.js:77:18)
at C:\Users\HP\Desktop\node_passport\routes\index.js:4:35
at Layer.handle [as handle_request] (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\index.js:281:22
It tried what you said but it keeps giving me the error.
Here is the rest of the error.
Error: No default engine was specified and no extension was provided.
at new View (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\view.js:61:11)
at Function.render (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\application.js:570:12)
at ServerResponse.render (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\response.js:1012:7)
at ServerResponse.res.render (C:\Users\HP\Desktop\node_passport\node_modules\express-ejs-layouts\lib\express-layouts.js:77:18)
at C:\Users\HP\Desktop\node_passport\routes\index.js:4:35
at Layer.handle [as handle_request] (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\HP\Desktop\node_passport\node_modules\express\lib\router\index.js:281:22