Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
ErikWetterberg

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