'Can't use JSPrintManager in reactjs

I try use JSPrintManager in reactjs app. I just added model using npm then import it import JSPM from 'jsprintmanager' but when I call JSPM.JSPrintManager I get this error

here the code

import JSPM from 'jsprintmanager' componentDidMount() {

    JSPM.JSPrintManager.auto_reconnect = true;
    JSPM.JSPrintManager.start();

}

here the error enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source