I'm currently working on integrating the printJS
library into an Angular project to print an image in PNG format. To begin, I added the following import statement:
import { printJS } from "print-js/dist/print.min.js";
Next, I implemented the printing code within a function based on the guidelines specified in the documentation:
printJS('no-image.png', 'image');
However, upon execution, I encountered the following error message: https://i.sstatic.net/YuLQr.png
As of now, I haven't been able to identify a solution to resolve this issue.