handlebars-template-loader icon indicating copy to clipboard operation
handlebars-template-loader copied to clipboard

{ [Error: Missing helper: "myHelper"]..

Open inzerceubytovani opened this issue 8 years ago • 2 comments

I'm trying to use your module with my custom helpers. Compilation goes allright but when I try to display page compiled from handlebars, I get error message:

{ [Error: Missing helper: "myHelper"] description: undefined, fileName: undefined, lineNumber: undefined, message: 'Missing helper: "myHelper"', name: 'Error', number: undefined }

I did everything what is written in tutorial but it didn't help.

inzerceubytovani avatar Nov 04 '16 12:11 inzerceubytovani

I tried what is listed in the readme:

const Handlebars = require('handlebars-template-loader/runtime');

Handlebars.registerHelper('areSame', function(value1, value2, options) {
  ...

but at runtime I still get

Error: Missing helper: "areSame"

rally25rs avatar Nov 06 '17 18:11 rally25rs

Same boat here. Would be helpful if the process was better documented (is main supposed to be the entry point??)

DXCanas avatar Apr 18 '18 23:04 DXCanas