Support for JS modules
I've bought Keen template for developing my app and I could check that JS code doesn't work using modules with webpack.
For example, if I try to import a KTCard and try to initialize it as it is on the docs, it raises a message saying that KTUtil must be present.
So, I would like to know if there are any plans of supporting JS modules.
To use the core components such as KTCard you will need to include KTUtil before as it's the main lib that all our JS components use.
We will rewrite our core JS components in a more modular way in the near future.
I've tried to do it but still not working. It seems to me this error is raising because KTUtil is not imported on KTCard. Import both together didn't make it work.
Please note that modular JS components at the moment are not supported so you should use them as common js.
If you need any further help please let us know your Keen version and the code you used to include the core components and import. Are you using Keen's default webpack build method or creating your own? The default webpack build should work fine if you just follow the documentation. If you are rebuilding Keen with modular core components then this will need major changes in the code since at the moment the modular js is not supported.