question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error print in IE

See original GitHub issue

Error message in IE in this function isFirefox: () => { return typeof InstallTrigger !== 'undefined' } i`m using npm module print.js please fix it, thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
avoronkoffcommented, Sep 12, 2018

i solved this problem like this (<any> window).printJS(this.printSettings); thanks!

0reactions
crabblycommented, Sep 22, 2018

Just published a new version to npm which has proper support for module import. The library will still expose a global variable printJS, but the recommend usage now should be to import the package at the same file where it will be used:

For ex.:

import printJS from 'print-js'

printJS('path-to.pdf')

Run npm update print-js to get the latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to print or view the print preview of a webpage in ...
Method 1: Troubleshoot issues with your printer and update your drivers to the latest version · Method 2: Try printing a webpage running...
Read more >
Fix Print Problems
To resolve problems when trying to print from IE 9, 10 or 11, first update your printer driver to the latest version. If...
Read more >
Solved: printing problem while on Internet Explorer - 5965380
If the print window does not appear then press the Ctrl+P keys on the keyboard and this should open the print window. Try...
Read more >
Unable to print or view the print preview of a ... - YouTube
This video will show you the simple steps to fix the inability to print or view the print preview of a webpage in...
Read more >
Internet Explorer throws error on printing - Super User
The page will print fine from Firefox or Chrome so the problem seems to be with IE rather than the print driver. I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found