developerforce / troubleshoot-lwc

Base Lightning Web Components Trailhead Troubleshooting Lightning Web Components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployment (of the flexipages) fails for API-version 53.0

haddi3 opened this issue · comments

Hi,

with the current version of sfdx the sourceApiVersion in sfdx-project.json is set to "53.0" (Winter'22).
This breaks deployment since the newly introduced required attribute componentInstance.identifier
(https://developer.salesforce.com/docs/atlas.en-us.234.0.api_meta.meta/api_meta/meta_flexipage.htm#ComponentInstance)
is missing.
That seems to be a breaking API-update (without backward compatibility) - rather unusual for Salesforce ...

Possible Workarounds:

  • set "sourceApiVersion": "52.0" in sfdx-project.json,
  • or add an identifier tag for the componentInstance in all .flexipage-meta.xml files (which would break deployment with API < 53).

BTW: Thanks for the Trailhead-module!