Exception in template helper: TypeError: Cannot set property 'getTemplateTag' of undefined - how to debug?


#1

One (huge) component in my meteor/blaze app generates the following:

Exception in template helper: TypeError: Cannot set property 'getTemplateTag' of undefined
    at Object.HTMLTools.parseFragment (http://localhost:3000/packages/html-tools.js?hash=00d6922eed91b94d112a82c648662567dfff2742:3228:28)
    at Object.SpacebarsCompiler.parse (http://localhost:3000/packages/spacebars-compiler.js?hash=372f0872e633cfe5b50bebb2fa436c3c1fd33dc6:1259:24)
    at Object.SpacebarsCompiler.compile (http://localhost:3000/packages/spacebars-compiler.js?hash=372f0872e633cfe5b50bebb2fa436c3c1fd33dc6:1267:32)
    at Object.CSR.compileTemplate (http://localhost:3000/app/app.js?hash=f90318d635c3d7ae5db32ee590e4d342facadf48:12736:27)
    at Document.link (http://localhost:3000/app/app.js?hash=f90318d635c3d7ae5db32ee590e4d342facadf48:12805:9)
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3051:16
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:1715:16
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3103:66
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3744:12)
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3102:27

I tried debugging the JS but with no luck sofar. Any pointers?


#2

Not a lot to go on - but I’d start with the Spacebars (HTML) and look for bad nesting, improper closing tags, etc.


#3

Been there done that. I could not find syntax issues.