Quantcast
Channel: Active questions tagged lightning-experience - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 3021

Unable to delete configuration properties from LWC?

$
0
0

I need some assistance with the following problem. I added the following code to my LWC:

<?xml version="1.0" encoding="UTF-8"?><LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"><apiVersion>48.0</apiVersion><isExposed>true</isExposed><targets><target>lightning__RecordPage</target><target>lightning__AppPage</target></targets><targetConfigs><targetConfig targets="lightning__AppPage,lightning__RecordPage"><property name="options" type="String" label="Options" datasource="val1, val2" /></targetConfig></targetConfigs></LightningComponentBundle>

I removed the component from the lightning page that I added it to, saved the page, removed the corresponding 'options' property from the JS, saved, and then updated the code above to remove the "options" property, at which point I received this error message when I tried to deploy:

You can't remove the property tag named 'options' specified intargetConfig lightning__RecordPage. The component is in use on aLightning page.

You can't remove the property tag named 'options' specified intargetConfig lightning__AppPage. The component is in use on aLightning page.

I'm not sure why I am receiving this error even though I have removed the component from the lightning page. Is anyone able to help? Thank you.


Viewing all articles
Browse latest Browse all 3021

Latest Images

Trending Articles



Latest Images