Salesforce Global Variables Blocked by Lightning Web Security
Lightning Web Security (LWS) blocks access to some global JavaScript objects that are available to other Salesforce features.
Lightning web components (LWC) don't have access to:
$A
Aura
Sfdc
sforce
LWS restricts access to these objects for Lightning web components because they are either deprecated or not supported for LWC.
See Also