Intermittently I’m getting:
Error:(1, 1) FIELD_INTEGRITY_EXCEPTION - Variable does not exist: Contact: Source
when trying to save an LWC that references apex method via Tooling API.
It seems that the issue caused by a Contact.AccountId reference in User object type var in referenced apex class. Apex class itself deploys fine.
I’m saying that it’s intermittent, but in reality it’s more of “works once or twice, then constantly erroring out”. For instance switching API version in component metadata allows to save component once before going back to errors.
CLI: sfdx force:source:deploy works fine each time.
Attaching debug log.
WebStorm 2021.3 + IC2 18.104.22.168
sfdx-cli/7.142.1 win32-x64 node-v16.14.0