I am overriding the edit button with a lightning component, in my sandbox it works fine. See the metadata:
when deploying I only deployed the section of metadata that I wanted to add, it looked like this:
<?xml version="1.0" encoding="UTF-8"?> <CustomObject xmlns="http://soap.sforce.com/2006/04/metadata"> <actionOverrides> <actionName>Edit</actionName> <content>Sales_Lex_OpportunityEdit</content> <formFactor>Large</formFactor> <skipRecordTypeSelect>false</skipRecordTypeSelect> <type>LightningComponent</type> </actionOverrides> </CustomObject>
I thought this was all you had to do, am I wrong ?
The deployement was successful but in that environment the edit button in lightning is not overriden: