Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'toHTML' of undefined #39

Open
tiholic opened this issue Jan 29, 2021 · 1 comment
Open

Cannot read property 'toHTML' of undefined #39

tiholic opened this issue Jan 29, 2021 · 1 comment

Comments

@tiholic
Copy link

tiholic commented Jan 29, 2021

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
Copy link
Author

tiholic commented Jan 31, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant