C.a is not a function in OnRightClick event

i use dhtmlxTreeView on an angular cli project with the typescript, the tree work fine in my pure js project but when i use rightclick event give me this error on console :

message: “c.a is not a function”

stack: "dhtmlXTreeObject.prototype._doContClick

how can i solve this ?

Could you please, provide a demo link, or a complete demo, where the problem can be reconstructed locally.