AttributeError: 'Issue' object has no attribute 'add_note' in issue doctype

frappe.ui.form.on(‘Issue’, {
refresh(frm) {
const crm_notes = new erpnext.utils.CRMNotes({
frm: frm,
notes_wrapper: $(frm.fields_dict.notes_html.wrapper),
});
crm_notes.refresh();
}
});
i have added this script in erp to show comments in issue doctype but this error message is occuring
@NCP