I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below:
1. Invalid type: Schema.ExternalObject__x 2. Invalid type: ExternalObject__x
Please help me to resolve these errors.