I am not using $A.run anywhere in the code. still I am getting below error: TypeError: $A.run is not a function.
Facing this issue after Summer 16 Release.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI am not using $A.run anywhere in the code. still I am getting below error: TypeError: $A.run is not a function.
Facing this issue after Summer 16 Release.
I've had that happen in a few scenarios:
I need to refresh the page to get the latest component code to load in the Lightning Experience. You can "restart" by going to https://<yourinstance>.lightning.force.com/one/one.app and navigating back to your page to be sure.
I still had the $A.run method in the code and didn't realize it. For that, the Salesforce Lightning CLI tool can be run against local code. Or, in this case you could just search the local files (e.g., find command, etc.) on your local machine.
I've made changes locally and thought I deployed them but didn't. For that, I go to the Developer Console and look at the actual code that is on the server and verify that the changes that I made locally got to the server.
I was able to successfully remove $A.run from my codebase in a Summer '16 pre-release org and in a Summer '16 org.