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
Michael MMichael M 

Not allowing me to add VF component to Lightning page

I created a VF page, and when I "edit page" and drage the VF component to the page, I select the page name from the "Visualforce Page Name" drop down, yet when I click save, I get a pop up with this error: "Component 'Visualforce' has an invalid value for property 'Visualforce Page Name'." What would the problem be? The page is enabled for lightning, so I don't know what else could be causing this error?
Best Answer chosen by Michael M
MagulanDuraipandianMagulanDuraipandian
1. Enable "Available for Lightning Experience, Lightning Communities, and the mobile app" for a Visualforce page to make it available in the Lightning App Builder.

2.Enable My Domain in your Org.

3. Add <apex:slds /> in the VF Page.

All Answers

MagulanDuraipandianMagulanDuraipandian
1. Enable "Available for Lightning Experience, Lightning Communities, and the mobile app" for a Visualforce page to make it available in the Lightning App Builder.

2.Enable My Domain in your Org.

3. Add <apex:slds /> in the VF Page.
This was selected as the best answer
Michael MMichael M
Aweomse- #3 seemed to do the job. What does that do exactly?