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
Pablo GarciaPablo Garcia 

Internal server error adding a Lightning component to a community page

I am getting this error: An internal server error has occurred Error ... when I am adding a Lightning Component to a community page in the Community Builder, with Napili template. 

The lightning component has a child component that includes some lightning:cards components. If I remove the lightning:card components, the lightning component can be added to the page.

Is lightning:card supported in community pages?
Best Answer chosen by Pablo Garcia
Alba RivasAlba Rivas
Hi Pablo,

I think this should be a Salesforce bug, as it has been reported in other threads: https://success.salesforce.com/answers?id=9063A0000019RmYQAU

You may open a case with Salesforce in order it is logged as a bug, as it currently doesn't appear as known issue.

If you strongly need this, you could build it from scratch and style it with SLDS.

Regards

All Answers

Alba RivasAlba Rivas
Hi Pablo,

I think this should be a Salesforce bug, as it has been reported in other threads: https://success.salesforce.com/answers?id=9063A0000019RmYQAU

You may open a case with Salesforce in order it is logged as a bug, as it currently doesn't appear as known issue.

If you strongly need this, you could build it from scratch and style it with SLDS.

Regards
This was selected as the best answer
Pablo GarciaPablo Garcia
Thanks for the answer. I'll try to build it from scract as you suggest.