+ Start a Discussion
Raphael BendenounRaphael 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 
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;
    }

    

}

 
VinayVinay (Salesforce Developers) 
Check if you have included controller 'childLWC' and 'filterPanel' are included in your package?

Thanks,
Raphael BendenounRaphael Bendenoun
@vinay how can I check that ? in package.json
VinayVinay (Salesforce Developers) 
Check if you see something like below with name.

User-added image

Thanks,
Raphael BendenounRaphael Bendenoun
In which file is it supposed to be ? in my LWC javascript ? 
VinayVinay (Salesforce Developers) 
I don't think you can deploy LMS to sandbox.

Check below details.
https://salesforce.stackexchange.com/questions/286181/how-to-enable-lightning-message-channel-for-sandbox-and-production

Thanks,