Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlik javascript module not loading with RequireJS

My mashup was working, but now I can't get the Qlik javascript file to load correctly.

I started using RequireJS to load my local libraries, but now it can't find the Qlik javascript at the "js/Qlik" path anymore.  I can find a file using the path "../../resources/js/qlik".  However this file does not export anything from the "define" function, so the Qlik variable is undefined.

I have not changed the requirejs configuration.

What is the correct path to the Qlik.js import?

define(["../../resources/js/qlik"], function(qlik) {         console.log('qlik', qlik); });

Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

Apparently this was because I moved my configuration into a different file.  When I moved my RequireJS configuration into the main HTML file, it worked again.

View solution in original post

1 Reply
Not applicable
Author

Apparently this was because I moved my configuration into a different file.  When I moved my RequireJS configuration into the main HTML file, it worked again.