Error on render_template

I am trying to render a template. For that, I have added template.html in custom-app/custom-app/public/js/templates and also mentioned it in build.json(inside custom-app-web.min.js)

But I’m getting error.
I tried to find out the error behind this code but couldn’t. Can anyone please help me to find this error ??

Uncaught (in promise) TypeError: Cannot read property 'indexOf' of undefined
    at Object.frappe.template.compile (microtemplate.js:9)
    at Object.frappe.render (microtemplate.js:74)
    at Object.frappe.render_template (microtemplate.js:85)
    at refresh (eval at setup (script_manager.js:155), <anonymous>:135:18)
    at a (script_manager.js:90)
    at script_manager.js:108
1 Like

It seems the html fails to compile so check for a syntax error in your html code?

This may help Frappe.render_template error

Have you found any solution? Facing same issue