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 ??
microtemplate.js:9
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