Hi,
I am getting an error in my .js file in LWC, when trying to reference a field in the import statement
import CATEGORY_FIELD from '@salesforce/schema/Car__c.Category__c'
I checked and made sure that the API name is right(intellisense suggested me the name too), and that it has the right permissions. It is a custom object that I created. Not sure why I am getting the error. I have the latest version of illuminatedcloud and webstorm IDE.
Here are the details of my error.
Deployment Failed: FIELD_INTEGRITY_EXCEPTION - Invalid reference Car__c.Category__c of type sobjectField in file carFilter.js: Source
The object import seems to work fine: import CAR_OBJECT from '@salesforce/schema/Car__c'
Please let me know why this is not working as expected.
Thanks,
Hari