Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Save the Date: QlikWorld Online, June 24-25, 2020. Free global virtual event for data integration and data analytic gurus. Register Today
Highlighted
Partner
Partner

Cannot read property 'setOnError' of undefined error within Mashup

Hello, everyone. I am trying to put the created mashup to the external server and constantly meeting "Cannot read property 'setOnError' of undefined" error.

I have changed the direct link to the qlik requirejs and it seems to read it, however, there is always an error of undefined and qlik objects are not loading.  I thought that the problem is that it can't get access to qlik.js or other necessary js and tried to include it inside the js file by paths, it doesn't help. Maybe the problem is the order of accessing require js?

What can be the problem, please? 

 

below is the part of the js code 

require.config({
	baseUrl: (config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "" ) + config.prefix + "resources",
    
    paths: {
        productinfo: 'https://server/resources/autogenerated/product-info',
        qlik: 'https://server/resources/js/qlik',
        client: 'https://server/resources/translate/en-US/client',
        common: 'https://server/resources/translate/en-US/common',
        devhub: 'https://server/resources/translate/en-US/devhub',
        engine: 'https://server/resources/translate/en-US/engine',
        single: 'https://server/resources/js/single'
    },

    waitSeconds: 10000
});

require(["js/qlik"], function (qlik) {
    window.qlik = qlik;

    qlik.setOnError(function (error) {
        console.log(error);
    });