You need to sign in to do that
Don't have an account?
Raphael Bendenoun
No MODULE named markup
Hi Friends,
I am trying to use the Lightning Message Chanel and deploy it to my sandbox but every time I do so I get an error message that have no idea how to interpret
=== Deploy Errors
PROJECT PATH ERRORS
───────────────────────────────────────────────────── ────────────────────────────────────────────────────────────────────
force-app/main/default/lwc/filterPanel/filterPanel.js No MODULE named markup://c:childLWC found : [markup://c:filterPanel]
here is my JS code
I am trying to use the Lightning Message Chanel and deploy it to my sandbox but every time I do so I get an error message that have no idea how to interpret
=== Deploy Errors
PROJECT PATH ERRORS
───────────────────────────────────────────────────── ────────────────────────────────────────────────────────────────────
force-app/main/default/lwc/filterPanel/filterPanel.js No MODULE named markup://c:childLWC found : [markup://c:filterPanel]
here is my JS code
import { LightningElement, wire } from 'lwc'; import getRegion from '@salesforce/apex/PicklistHelper.getRegion'; import getCountry from '@salesforce/apex/PicklistHelper.getCountry'; import getMarket from '@salesforce/apex/PicklistHelper.getMarket'; import { publish, subscribe, unsubscribe, APPLICATION_SCOPE, MessageContext } from 'lightning/messageService'; import recordSelected from "@salesforce/messageChannel/MarketMC__c"; export default class FilterPanel extends LightningElement { regionOptionsList; countryOptionsList; marketOptionsList; selectedCountry; selectedRegion; selectedMarket; @wire(MessageContext) messageContext; @wire(getRegion) retrieveRegion({error, data}){ let tempArray = [] let tempDefaultValueList = [] if(data){ for(let key in data){ tempArray.push({label:data[key], value:key}); tempDefaultValueList.push(key); } } this.regionOptionsList = tempArray; this.selectedRegion = tempDefaultValueList[0]; const payload = {regionID: selectedRegion}; publish(this.messageContext, recordSelected, payload); } handleRegionChange(event){ this.selectedRegion = event.target.value; const payload = {regionID: selectedRegion}; publish(this.messageContext, recordSelected, payload); } @wire(getCountry, {RegionId: '$selectedRegion'}) retrieveCountry({error, data}){ let CountrytempArray = [] let countryTempDefaultList = [] if(data){ for(let key in data){ CountrytempArray.push({label:data[key], value:key}); countryTempDefaultList.push(key); } } this.countryOptionsList = CountrytempArray; this.selectedCountry = countryTempDefaultList[0] } handleCountryChange(event){ this.selectedCountry = event.target.value; } @wire(getMarket, {CountryId: '$selectedCountry'}) retrieveMarket({error, data}){ let MarketempArray = [] let marketTempDefaultList = [] if(data){ for(let key in data){ MarketempArray.push({label:data[key], value:key}); marketTempDefaultList.push(key); } } this.marketOptionsList = MarketempArray; this.selectedMarket = marketTempDefaultList[0] } handleMarketChange(event){ this.selectedMarket = event.target.value; } }
Thanks,
Thanks,
Check below details.
https://salesforce.stackexchange.com/questions/286181/how-to-enable-lightning-message-channel-for-sandbox-and-production
Thanks,