ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.32k stars 382 forks source link

exphbs is not a function #297

Open habfem opened 2 years ago

habfem commented 2 years ago

TypeError: exphbs is not a function at Object. (C:\Users\habee\3D Objects\NODE\EXPRESS_CRASH\index.js:13:26) at Module._compile (internal/modules/cjs/loader.js:1072:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) at Module.load (internal/modules/cjs/loader.js:937:32) at Module.load (internal/modules/cjs/loader.js:937:32) at Function.Module._load (internal/modules/cjs/loader.js:778:12) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47 [nodemon] app crashed - waiting for file changes before starting...

Is anyone else getting this type of error

UziTech commented 2 years ago

All new development of express-handlebars is done on a new repo express-handlebars/express-handlebars. Please create an issue there and add more info like the version of express-handlebars and node and some example code that produces the error.

habfem commented 2 years ago

Thanks. That was really helpful

habfem commented 2 years ago

.engine pretty much solves my problem