Hi,
can I use import statements without using the ECMAscript module? the reason is that I want to integrate Qlik Sense in meteor. But Qlik Sense already uses a custom enhanced version of require.js to load its files. Note that it is a custom version of require. So I now put this qlik require.js file in my client/lib/compatibility folder and that works. please note that I NEED TO USE THIS REQUIRE,JS file, otherwise I can’t integrate Qlik sense. and the problem is that both Qik sense and common js use the require key word.
`myQlik = function myQlik(callback) {
require.config({
baseUrl: (qConfig.isSecure ? "https://" : "http://") + qConfig.host + (qConfig.port ? ":" + qConfig.port : "") + qConfig.prefix + "resources"
});
require(["js/qlik"], function(qlik) {
qlik.setOnError(function(error) {
sAlert.error(error.message);
});
callback(qlik, qConfig);
});
`
Except that I can’t use NPM and the import statement?
I would love to use NPM packages too to do Single Sign on for example using the Qlik-auth package
I now get the error that import is a reserved keyword. if I use import qlikauth from ‘qlik-auth’; in line 1 of the file.