Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

mario_m_rodrigu
New Contributor

How can i include other require modules other than js/qlik?

Hello, i am new to QLIK and im trying to build a web app with qlik sense content from a remote QLIK SERVER. I included Require JS in my html header like this in MY HTML like this:

   <script src="http://localhost:4848/resources/assets/external/requirejs/require.js"></script>

Then in my javascript i included the require confuguration like:

require.config({

  baseUrl:...

});

Then im able to invoke methods from the ROOT API through require(['js/qlik']) function(qlik) {}). Until here everything is fine, but now i wanted to try qlik-auth, for that i installed in my machine the node.js module qlik-auth (npm i qlik-auth). The problem is, wherever i try to include QLIK auth (through var x = require['qlik-auth']) i always get an error that saying Module name has not been loaded yet for context. I also tried to include other modules, the result is the same!


Can you provide some help on this subject?



1 Reply
erik_wetterberg
Valued Contributor III

Re: How can i include other require modules other than js/qlik?

Hi Mario,

qlik-auth is a Nodejs module so it's meant to be included in a serverside service, not in the browser. What do you want to do?

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
Community Browser