You must pass a string or Handlebars AST to Handlebars.compile. You passed undefined