$.templates is not a function in sails js chat

My Code
function renderChatMessages(data) { const chatContent = $(‘#chat-content’); const template = $.templates(‘#chatTemplate’); let htmlOutput = template.render(data); chatContent.append(htmlOutput); const scrollHeight = chatContent.prop(“scrollHeight”); chatContent.animate({ scrollTop: scrollHeight }, “slow”); }