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">
    <description>Message Channel to pass data</description>
        <description>This is the field to pass data</description>

How o deploy it in the source org


1 Answer 1


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 .