sir what are you using insted of KTMenu.createInstances();
As explained here please use the below code:
this also not working
Which Metronic version are you using? Do you have any JS errors in your browser console ? Can you explain how you are loading the menu HTML code and when you are calling
KTComponents.init() code ? When you call it does the menu HTML code exist in your DOM ?
If you have a test link to your site please provide it via a private reply.