I don't know why it gives this error. I have also set view engine
to hbs
using app.set()
, also defined path of views
(path is correct, no error there). But it still says cannot find module hbs
(it is already installed) when I try to render.
You can see that I am using get()
request to render()
the index.hbs
file inside Views
folder. Why is it showing this error?