Hi all, I'm trying to use metronic with Symfony, and AssetMapper from symfony.
I have at the root of my project a folder _keenthemes with which I build the theme sources. The compiled sources fall into my assets/metronic folder as defined in webpack.config.js in the "tools" folder.
Styles etc. work.
However, I get this error: Uncaught ReferenceError: KTApp is not defined
In my console.
Could you please tell me how to integrate metronic with AssetMapper from Symfony?
Best regards,
Pierre
Hi Pierre,
Apologies for the delay in response. Regarding the "Uncaught ReferenceError: KTApp is not defined" issue, it might be related to the order in which the assets are imported.
In Metronic, the order of importing assets is crucial. Ensure that you are importing the required JavaScript files in the correct order. For example, you may want to include plugins.bundle.js first, followed by scripts.bundle.js.
If you're using the HTML version of Metronic, you can refer to the order in which assets are included in the HTML files. Try to replicate a similar order when including assets in Symfony using the AssetMapper.
If the issue persists, feel free to share more details about how you're currently importing the assets.
Thank you