Angular printjs: ERROR TypeError: Object(…) is not a function
Angular printjs: ERROR TypeError: Object(…) is not a function I'm trying to use printJS in Angular and print an image (PNG). I did the import: printJS 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 got following error: I can't find solution to fix this. Try to import the non minified version of the script – bambam Jun 29 at 10:48 @bambam I changed import to import { printJS } from "print-js/dist/print.js"; it compiles without any errors but the problem is the same. – XardasLord Jun 29 at 10:50 import { printJS } from ...
