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
sfdcdevsfdcdev 

Defining Component Attributes- Component Composition

<aura:component>
    Observe!  Components within components!

    <auradocs:helloHTML/>

    <auradocs:helloAttributes whom="component composition"/>
</aura:component>

When I'm saving the above code in developer console, then getting this error:

FIELD_INTEGRITY_EXCEPTION
Failed to save undefined: No COMPONENT named markup://auradocs:helloHTML found : [markup://c:nestedComponents]: Source

I have already created helloHTML and helloAttributes components.Any idea what's happening!
 
Best Answer chosen by sfdcdev
Shailesh DeshpandeShailesh Deshpande
What is the namespace for your organization?

If you do not have namespace registered, you can use, <c:helloHTML>
If you have a namespace registered, you can use <yourNamespace:helloHTML>

Thanks,
Shailesh.