Closed fchubu closed 4 years ago
This has to do with the require.js text plugin that many qlik sense extensions make use of, thats bundled along with the require.js code qlik sense uses both in the client and in the capability apis.
You can check out the text plugin docs for more info here, https://github.com/requirejs/text, but basically if the text plugin is used to make a request to a file cross origin, it tries to load a .js file instead unless you set a requirejs config value useXhr to true. We have that set in the qApp.js file in qdt-components, and this has worked previously. However I can confirm that it's no longer working. This is something that has changed with the require.js code that is loaded from Qlik Sense itself, and I'm at a loss how to address it.
This is not a problem with qdt-components, but with building any mashup using the capability apis on a different origin than your qlik sense enterprise origin.
You can fix this for this particular extension, however. the qlik sense require.js stuff also includes the css plugin, which is working fine. So if you go into the SimpleFieldSelect.js file, and in the define props, change all the text! to css! it will fix this particular issue for you. Screenshot below
Hi @fkabinoff , thanks for the rensponse/info.
Info:
Behaviour only when try to get components of type 'extension'.
The library is trying to get a file extension ".css.js"
Code:
Console output: