I have the Salesforce Lightning Inspector Chrome extension installed and this works when Lightning Experience is turned on.
But when testing in Salesforce Classic where a Lightning Component is added to a Visualforce page via $Lightning.use
, it generates this error:
Uncaught TypeError: global.$A.getContext is not a function
with a link to this fragment of code:
// Since we were injected, Aura could already be available. If so, let the devtools know.
if(!global.$A || !global.$A.getContext()) {
var _Aura;
...
Is there a way to make the Lightning Inspector work for this case?