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
Laetitia Damen 9Laetitia Damen 9 

Error while creating component for lightning component quick action !

Hi there! 
I've merged my javascript button to Aura component (client need). It shows an error. What do I need to change in my code? 
Error while creating a component for lightning component quick action [Assertion Failed!: Abstract component without provider def cannot be instantiated : markup://c:LCC_GenericLightningComponent : undefined] 

Here my code : User-added imageUser-added image

 
ShivankurShivankur (Salesforce Developers) 
Hi Laetitia,

As per a blog (https://developer.salesforce.com/blogs/developer-relations/2015/03/salesforce-lightning-components-by-example-component-extension.html) about usage, the extends attribute is set to the c:yourComponentName component to indicate that the childComponent is a sub component of the c:yourComponentName component. Note the “c:” that precedes the yourComponentName in the extends attribute. It is the namespace of the component being extended, which in this case is the default namespace. If you were extending a component in a managed package you’d use its namespace.

Can you try using it in following format:
<aura:component extends="yournamespace:myComponent">
Please refer to below documentation for more understanding on it:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespace_using_reference.htm

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.