5

When trying to upgrade exposed LWC in a managed package I have faced the following limitations related to their configuration file.

-You can not remove/rename a previous existing property.

-You can not change the type (f.i: from Integer to String) of a previous existing property.

-You can not remove requiredness of a previous existing property.

I understad the first 2 of them and actually they make sense. However, about the 3rd one, I had some properties with required="true" that I changed to required="false" and are not reporting errors. The curious thing is the error I am receiving is when changing a property from required="false" to "required="true". I find this strange since the problem seems to be just the opposite of what the error message is saying:

You can’t remove requiredness for the property tag named 'dummyProperty' specified in targetConfig lightning__RecordPage. The component is part of a managed package.

I would appreciate some clarifications around this and, besides, if someone could provide a list of all these kind of limitations I would find that really usefull since I did not find any detailed documentation about that.

1 Answer 1

3

This seems to be a bug as per me in the manageability rules in the salesforce packaging module or this behavior is not well documented.

You can raise a case for this!

What are Manageability rule?

Manageability rules are there in place to make sure you do not break the subscriber when your subscribers upgrade a Managed Package.

Most of these rules are documented in the ISV guide in sections below

Looks like the behavior you have is either a bug or it should be documented in the special behaviors section.

For now, one way to get away with the error is using a default value to the config parameter

<property name="dummyProperty" required="true" type="String" default="test"></property>
1
  • Hi Mohith - Do we have a Known Issue around this so we can track? This is troubling at far greater length, even though we have not packaged and one developer accidently added a new property in our component and now we can't remove this property, even though No Package Upload/Release happened after adding property to LWC.
    – VarunC
    Commented Mar 22, 2021 at 9:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .