function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PACO_DPACO_D 

No COMPONENT named markup://c:auraMethod found

I am trying to save this component
<aura:component implements="flexipage:availableForAllPageTypes,force:appHostable" access="global" >
    <c:auraMethod aura:id="child" />
    <aura:handler event="c:formsubmit" action="{!c.onFormSubmit}"/>
    
    
    
    <lightning:layout VerticalAlign="center">
        <lightning:layoutItem padding="around-small">
            <c:BoatSearchForm /> 
        </lightning:layoutItem>
    </lightning:layout>
    <lightning:layout VerticalAlign="center">
        <lightning:layoutItem padding="around-small">
            <c:BoatSearchResults />
        </lightning:layoutItem>
    </lightning:layout>
</aura:component>

 i have the error "No COMPONENT named markup://c:auraMethod found"

have you face this issue ?
 
Best Answer chosen by PACO_D
Manish  ChoudhariManish Choudhari
Hi Paco,

You are getting this error as there is no custom component named "auraMethod" in your org. If you do have this custom component, can you please paste the code here or may be give me more details about the scenario.

What I believe is you are trying to access standard aura method syntax, in that case please remove <c:auraMethod aura:id="child" /> line and use <aura:method , example code below:
 
<aura:method name="sampleMethod" action="{!c.doAction}" 
  description="Sample method with parameters"> 
    <aura:attribute name="param1" type="String" default="parameter 1"/> 
    <aura:attribute name="param2" type="Object" /> 
</aura:method>


More on <aura:method /> tag:  https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_tag_method.htm


Please let me know if this answers your question and if you need further help on this.

Thanks,
Manish

All Answers

Tiago Armando CoelhoTiago Armando Coelho
Hi Paco. 

<c:auraMethod aura:id="child" />  is raising the error because its looking for a component called auraMethod.

Can you please give me more details about what are you trying to do?

Kind regards, 
Manish  ChoudhariManish Choudhari
Hi Paco,

You are getting this error as there is no custom component named "auraMethod" in your org. If you do have this custom component, can you please paste the code here or may be give me more details about the scenario.

What I believe is you are trying to access standard aura method syntax, in that case please remove <c:auraMethod aura:id="child" /> line and use <aura:method , example code below:
 
<aura:method name="sampleMethod" action="{!c.doAction}" 
  description="Sample method with parameters"> 
    <aura:attribute name="param1" type="String" default="parameter 1"/> 
    <aura:attribute name="param2" type="Object" /> 
</aura:method>


More on <aura:method /> tag:  https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_tag_method.htm


Please let me know if this answers your question and if you need further help on this.

Thanks,
Manish
This was selected as the best answer
PACO_DPACO_D
I had an incomprehension when reading the developer's guide