I'm trying to use printJS in Angular and print an image (PNG). I did the import:
import { printJS } from "print-js/dist/print.min.js";
Then I execute this printing code in function, according to the documentation:
printJS('no-image.png', 'image');
I can't find solution to fix this.

import { printJS } from "print-js/dist/print.js";it compiles without any errors but the problem is the same.