Questions & Answers

Getting "exphbs is not function" in JavaScript

I have problems with this, I just can't figure it out.

Problem is:

exphbs is not function.


app.set("view, path.join(__dirname, "views"));
pp.engine(".hbs", extname: ".hbs", defaultLayout: false }));

I don't know where is the problem.

2023-01-22 00:25:04
You are not even showing where exphbs comes from or how you are using it as a function.
Answers(0) :