promised-handlebars icon indicating copy to clipboard operation
promised-handlebars copied to clipboard

Cannot read property 'toHTML' of undefined

Open tiholic opened this issue 4 years ago • 1 comments

Encountered these logs. Unable to find the root cause.

TypeError: Cannot read property 'toHTML' of undefined
    at replacePlaceholdersRecursivelyIn (.../node_modules/promised-handlebars/lib/markers.js:96:31)
    at .../node_modules/promised-handlebars/lib/markers.js:106:22
    at .../node_modules/promised-handlebars/lib/replaceP.js:44:47
    at String.replace (<anonymous>)
    at replaceP (.../node_modules/promised-handlebars/lib/replaceP.js:37:14)
    at replacePlaceholdersRecursivelyIn (.../node_modules/promised-handlebars/lib/markers.js:102:20)
    at .../node_modules/promised-handlebars/lib/markers.js:111:18

PS: Thank you for the work. This package is a great relief!

tiholic avatar Jan 29 '21 17:01 tiholic

Found the root cause: One of my async helpers was returning undefined in one particular scenario.

tiholic avatar Jan 31 '21 05:01 tiholic