POS Print receipt button not working

Hi friends nice interface changes in ERPNext v13.
I am facing an issue where when i click PRINT RECEIPT button in POS, it is not printing. and giving below js error

Please help

Can anyone help regarding?

Please anyone help?

Need help urgently.

No body helped. But I managed to get it solved but through dirty way.
I have modified pos_past_order_summary.js file.
old code

this.$summary_container.on(‘click’, ‘.print-btn’, () => {
const frm = this.events.get_frm();
frm.doc = this.doc;
frm.print_preview.lang_code = frm.doc.language;
frm.print_preview.printit(true);
});

new Code:

this.$summary_container.on(‘click’, ‘.print-btn’, () => {
window.open(window.location.origin+“/printview?doctype=POS%20Invoice&name=”+this.doc.name+“&trigger_print=1&format=POS%20Invoice&no_letterhead=0&_lang=en”);
});

I hope this will help someone.