Error: Missing helper: 'lookup'
at new Exception (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\exception.js:13:41)
at String. (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\base.js:57:13)
at program1 (eval at createFunctionContext (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:189:23), :13:255)
at prog (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\runtime.js:107:15)
at Object. (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\base.js:99:23)
at Object.eval (eval at createFunctionContext (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:189:23), :33:25)
at D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\runtime.js:86:31
at D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:465:21
at ExpressHandlebars._renderTemplate (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\lib\express-handlebars.js:339:22)
at ExpressHandlebars.renderTemplate (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\lib\express-handlebars.js:196:18)
It's supposed to be a built in helper for handlebars, I could use all other built in helpers like {{#each}} , {{#with}}, without issue but lookup is not getting identified as a built in helper
https://handlebarsjs.com/guide/builtin-helpers.html#lookup
Error: Missing helper: 'lookup' at new Exception (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\exception.js:13:41) at String. (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\base.js:57:13)
at program1 (eval at createFunctionContext (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:189:23), :13:255)
at prog (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\runtime.js:107:15)
at Object. (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\base.js:99:23)
at Object.eval (eval at createFunctionContext (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:189:23), :33:25)
at D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\runtime.js:86:31
at D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:465:21
at ExpressHandlebars._renderTemplate (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\lib\express-handlebars.js:339:22)
at ExpressHandlebars.renderTemplate (D:\doc\web devlopment\ApplicationCustomization\Random-stuffs\node_modules\express3-handlebars\lib\express-handlebars.js:196:18)
`
How did you define the
lookup
helper?Looks like you might be using
lookup
wrong. Or this is an issue for the https://github.com/handlebars-lang/handlebars.js repoAlso new development for express-handlebars has moved to https://github.com/express-handlebars/express-handlebars
It's supposed to be a built in helper for handlebars, I could use all other built in helpers like {{#each}} , {{#with}}, without issue but lookup is not getting identified as a built in helper https://handlebarsjs.com/guide/builtin-helpers.html#lookup
It looks like you are using an old version. express3-handlebars is no longer maintained. Use express-handlebars instead.