Custom Components: import from cdn

I’m reusing an external library within my custom component. I can download the js-lib and upload it into my component file storage. Then, I’m doing

import something from  './lib/extlib.all.min.js';

All this works fine.

I found that it is not possible to do something like this:

import something from '';

Upon saving there is the error

The target environment doesn’t support dynamic import() syntax so it’s not possible to use external type ‘module’ within a script

Is it somehow possible to use a CDN server for importing libraries into custom components?


Hi @Klaas_Klever

yes, at this moment there is no way to import modules from CDN.