• Rajat Bajaj 14
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
We are facing issues with Lightning Message Service. We are using a LWC component in experience builder which publishes the message using LMS. Please find below error message while publishing the message.

Error details
Error details



We are using all standard code as per the below documentation - 

1. we have subscribed to the message channel in our community.
import SAMPLECHANNEL from '@salesforce/messageChannel/SampleMessageChannel__c';
2. we have imported the pusblishMessage , MessageContext.
import { publish, MessageContext } from 'lightning/messageService';
3. We have also use the wire context.
 @wire(MessageContext) messageContext;
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel


Need help from the Ohana community..!! Please help..!!