Not available for deploy for this API version

lightning-web-components

I'm not able to deploy Lightning Message Channel.

Error: Not available for deploy for this API version

Code

<?xml version="1.0" encoding="UTF-8"?>
<LightningMessageChannel xmlns="http://soap.sforce.com/2006/04/metadata">
   <masterLabel>Record</masterLabel>
   <isExposed>true</isExposed>
   <description>This Lightning Message Channel sends information from VF to LWC</description>

   <lightningMessageFields>
       <fieldName>messageToSend</fieldName>
       <description>message To Send</description>
   </lightningMessageFields>

   <lightningMessageFields>
       <fieldName>sourceSystem</fieldName>
       <description>My source?</description>
   </lightningMessageFields>
</LightningMessageChannel>

Best Answer

LightningMessageChannel was introduced in API version 47.0. If you are deploying your source using an earlier API version, you must upgrade in order to deploy this component.

Related Topic