title: Angular printjs: ERROR TypeError: Object(...) is not a function
body: <p>I'm trying to use <code>printJS</code> in Angular and print an image (PNG). I did the import:</p>
  
  <pre><code>    import { printJS } from "print-js/dist/print.min.js";
  </code></pre>
  
  <p>Then I execute this printing code in function, according to the <a href="http://printjs.crabbly.com/#documentation" rel="nofollow noreferrer">documentation</a>:</p>
  
  <pre><code>    printJS('no-image.png', 'image');
  </code></pre>
  
  <p>I got following error:
  <a href="https://i.stack.imgur.com/YuLQr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YuLQr.png" alt="enter image description here"></a></p>
  
  <p>I can't find solution to fix this.</p>