this.type.templateStart is not a function

We occasionally get the following error which halts the app completely.

Exception with thrown value: TypeError: this.type.templateStart is not a function. (In ‘this.type.templateStart(t,this.type,e)’, ‘this.type.templateStart’ is undefined)

We can’t put our finger on the cause. Anyone have a clue? It occurs on the first webix.ui() call which is in EsqUI_Desktop.js:117 of our code. We assume we are setting some template value too early but the webix.ui call line 117 is in the webix.ready( function() {} ) call.

[Error] TypeError: this.type.templateStart is not a function. (In ‘this.type.templateStart(t,this.type,e)’, ‘this.type.templateStart’ is undefined)
jb (webix.js:426:109)
map (webix.js:26:306)
render (webix.js:431:110)
(anonymous function) (webix.js:516:191)
(anonymous function) (webix.js:14:156)
callEvent (webix.js:23:239)
refresh (webix.js:462:355)
df (webix.js:458:291)
tB (webix.js:123:296)
M (webix.js:124:277)
parse (webix.js:123)
data_setter (webix.js:120:150)
K (webix.js:119:319)
o (webix.js:14)
A (webix.js:188:170)
body_setter (webix.js:305)
D (webix.js:95)
C (webix.js:95)
e (webix.js:95:199)
o (webix.js:13:306)
A (webix.js:188:170)
ui (webix.js:176:228)
suggest_setter (webix.js:383)
options_setter (webix.js:408:323)
D (webix.js:95)
C (webix.js:95)
e (webix.js:95:199)
o (webix.js:13:306)
A (webix.js:188:170)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:1307:184)
o (webix.js:14)
A (webix.js:189)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
kc (webix.js:266:115)
o (webix.js:14)
A (webix.js:188:299)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:1307:184)
o (webix.js:14)
i (webix.js:11:225)
A (webix.js:189)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
kc (webix.js:214:202)
kc (webix.js:225:143)
o (webix.js:14)
A (webix.js:188:315)
ui (webix.js:176:228)
loadEsqDesktopUI (EsqUI_Desktop.js:117)

Can you share a snippet or a demo link where the issue can be checked ?

The stack trace, says that during the data parsing, some data component can’t render itself. It can occur if you are using some data-component with wrong “type” value.

If you are using webix.Type to define custom types, be sure that it was called before the UI initialization.