Hi All, How do I initiate the mountToApp() executi...
# suitecommerce
s
Hi All, How do I initiate the mountToApp() execution of my custom module without calling it inside another existing SCA module? In distro.json, I added my custom module in "modules" object/array. But without adding my custom module as dependency in another SCA module and then calling it's mountToApp() method, I am unable to start execution of my custom module. Please guide what am I missing? Thanks
b
You also need it as a dependency in the tasksConfig.javascript for each app it’s used in.. shopping.js, myaccount.js, checkout.js
👍 1
s
Thanks @Bryce Krah, that worked. Seems as of SCA version 2021+ they have changed distro.json a little bit. Now we add javascript dependencies in these files: • SC.Shopping.Starter.Dependencies.ts • SC.MyAccount.Starter.Dependencies.ts • SC.Checkout.Starter.Dependencies.ts