I found a print plug-in on the Internet and found that there was a problem according to the example. I don't know what's wrong.

problem description

the plug-in found on the Internet is called print-js, and then keeps reporting errors according to the example, (0, _ printJs2.default) is not a function

the environmental background of the problems and what methods you have tried

I printed the discovery that it was an empty object, not a method, and never figured out what went wrong

related codes

/ / Please paste the code text below (do not replace the code with pictures)

plug-in underlying encapsulation: 1. Index.js
(import print from". / js/init"

const printjs = print.init

if (typeof window! = = "undefined") {
window.printJS = printjs
})

II. Init.js
(export default {
init () {

let params = {
  printable: null,
  fallbackPrintable: null,

export default printjs
III. My citation method
import print from "print-js"

            print({
                printable: "print_count",
                type: "html",
                // 
                 targetStyles: ["*"]
            })

documentation of the plug-in: http://printjs.crabbly.com/-sharpcdn
II,

what result do you expect? What is the error message actually seen?

Jun.03,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3f420-4481d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3f420-4481d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?