Visual composer doesn't load and gives TypeError: _.template(...).trim is not a function
<p>My visual composer plugin doesn't work. It stuck on the loading page. And it gives an error "TypeError: <em>.template(...).trim is not a function"
Error is on this line of code:
this.$controls = $(</em>.template(template, data, vc.template_options).trim()).addClass('vc_controls');</p>

<p>Please help me to fix this out.</p>

<p>Here is the error which I get:</p>

<p><a href="https://i.stack.imgur.com/hyIO5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hyIO5.png" alt="screenshot"></a></p>