bradtraversy / nodecontactform

Node.js app that uses nodemailer to send emails
179 stars 174 forks source link

exphbs is not a function #7

Open muskaan2020 opened 2 years ago

muskaan2020 commented 2 years ago

app.engine('handlebars', exphbs()); ^

TypeError: exphbs is not a function at Object. (C:\Users\91977\Desktop\nodecontactform-master\app.js:10:26) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47

Rehan-Multani commented 1 year ago

exphbs() use exphbs.engine()