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
Certification PracticeCertification Practice 

Lightning Component Embedded on VF page needs to run in classic

I have a lightning component that is updating a record and working fine when I add it to the standard Account page in lightning experience. but when I tried to embed the component on the VF page (Which runs in classic mode) and updating the records it is giving error. 
 
Is it possible to achieve it?

If yes please suggest some resources.
{tushar-sharma}{tushar-sharma}
Whether you are using force:createRecord or lightning:navigation, they both only work in LEX environment and didn't support LC inside Visualforce.
There are some hacks available, you can try that but not sure how long that will work.
https://developer.salesforce.com/docs/component-library/bundle/force:createRecord/documentation
https://developer.salesforce.com/docs/component-library/bundle/lightning:navigation/documentation
Hack: https://salesforce.stackexchange.com/questions/124405/lightning-issue-while-calling-createrecord-event-component

Regards,
Tushar Sharma
https://newstechnologystuff.com/