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
Ayyaz Zafar 6Ayyaz Zafar 6 

Package upload does not work for managed package but works for unmanaged package

I am using Developer edition to upload my package. 

It works perfectly fine if I upload umanaged pacakge.

But when I enable manged packaging and try to upload then I get following error:

 

Package upload error
There are problems that prevent this package from being uploaded.

 

We couldn't validate your component. Review it and try again.
User-added image
I have been struggling a lot for a very long time but still could not find any clue. 

Any help would be very appreciated. 

Thanks in advance

VinayVinay (Salesforce Developers) 
Hi Ayyaz,

Review below link which has details on above error.

https://salesforce.stackexchange.com/questions/253469/unable-to-upload-a-managed-package-with-a-generic-error/253473

Thanks,
Ayyaz Zafar 6Ayyaz Zafar 6

Hi Vinay! 

Thank you for quick response.

I read that stackoverflow question and answer. It's interesting. But in my case, I am using just property instead of function with @api

User-added image
User-added image

Please let me know if there is anything else I can do.

Thanks

Ayyaz Zafar 6Ayyaz Zafar 6

Alright. I fixed my issue by removing following code:

<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<property name="recordId" type="String" />
</targetConfig>
</targetConfigs>

from ....js-meta.xml file and then it started to work fine.
 

VinayVinay (Salesforce Developers) 
Cheers and Good to hear that issue is fixed.
mint winmint win
You shared a useful post and thanks for sharing this to us.  Kroger feed eschedule is a work schedule provided by Kroger to its employees at an online portal Greatpeople.me. Kroger Employee Can also able to check Kroger Schedule. We have provided the Details on How To Check Eschedule Of Kroger Employees https://krogerfeedback.pro/check-eschedule-of-kroger-employees/