+ Start a Discussion
Shubham NandwanaShubham Nandwana 

Lightning component in force.com site visualforce page not working

Hi,
I have created a lightning component which is working in a visualforce page, when i click on preview button it open with lightning component functionalities, but as soon as i add that visualforce page to my site (force.com site), it shows a blank page.
Does someone know what needs to be done or something else is to be configured?
I referred to below link to create a lightning component with visualforce page.
https://www.jitendrazaa.com/blog/salesforce/use-lightning-component-in-visualforce-page/
Any little help is appreciated.
Regards,
Shubham Nandwana
 
NagendraNagendra (Salesforce Developers) 
Hi Shubham,

You will need to enable Salesforce communities to get it working.T he docs clearly mention that for lightning out to work for guest users you need Salesforce communities enabled.

Also, any error will show up in the browser console Open console and look for errors.

Please let us know if this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra