If you are using Visual Studio Code to deploy to Salesforce and come across an API Version specific error such as ‘Property ‘componentInstances’ not valid in version …‘ there are several options to try:
When deploying through the package.xml try changing the version(<version>xx.0</version>) to the specific version you need. Then deploy and see if that works.
If you aren’t using a package.xml you can try changing the sfdx-project.json “sourceAPIVersion” : “xx.0”
If the above 2 doesn’t work you can use the CLI to with the following command:
$ sfdx force:source:deploy -x manifest/package.xml --apiversion xx.0
Checkout My New Course:
Crush It As A Salesforce Developer: Mastering Apex
Test Your Knowledge:
Try the new Salesforce Developer Quiz