You need to sign in to do that
Don't have an account?
scott_dev
Is someone able to assist me in understanding why I'm seeing this issue?
Unable to deploy a LWC that imports a LightningMessageChannel to Sandbox
Hello, I have created a the very first messageChannel in our repo under the folder "messageChannels" and have created the xml file "Test_Sample.messageChannel-meta.xml" and deployed it successfully to a sandbox org. If I then import that messageChannel into my LWC:
import TestSampleMsgChannel from '@salesforce/messageChannel/Test_Sample__c';
when I try to deploy the LWC from IntelliJ (Illuminated Cloud), I get this error:
Error:(1, 1) FIELD_INTEGRITY_EXCEPTION - org.auraframework.throwable.AuraRuntimeException: Unable to retrieve metadata for descriptor: markup://c:__LightningMessageChannel__Test_Sample__c: Source
Is someone able to assist me in understanding why I'm seeing this issue?
Refer the below link have solution for similar kind of ask.
https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000A977YSAR
https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/1574/lightning-message-service-in-non
If this helps, Please mark it as best answer.
Thanks!!