1

I have created a lightning message service configuration file (.Xml) and while deploying it on right click of vs code and deploying it i am facing the below error

force-app\main\default\messageChannels\SampleMessageChannel.messageChannel-Meta.xml: Could not infer a metadata type

I am using devloper org not a sandbox or scratch so i am unable to use sfdx force:source:push

<?xml version="1.0" encoding="UTF-8" ?>
<LightningMessageChannel xmlns="http://soap.sforce.com/2006/04/metadata">
    <masterLabel>SampleMessageChannel</masterLabel>
    <isExposed>true</isExposed>
    <description>Message Channel to pass data</description>
    <lightningMessageFields>
        <fieldName>lmsData</fieldName>
        <description>This is the field to pass data</description>
    </lightningMessageFields>
</LightningMessageChannel>

How o deploy it in the source org

3

1 Answer 1

0

Copy paste this into the terminal, worked for me.

sfdx force:source:deploy -m LightningMessageChannel

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .