5

In a Community that I am trying to package using 2GP with:

sfdx force:package:version:create

after eliminating several errors I am now getting this one:

These entities are not supported: [NavigationLinkSet]

There is a CommunityTemplateDefinition included, and that can have a collection of NavigationLinkSet (according to CommunityTemplateDefinition). But there are no references to navigationLinkSet or NavigationLinkSet in the source. And we do want to distribute the community template as well as the LWCs and Apex etc.

(There is a NavigationMenu containing navigationMenuItem which look closely related.)

Is CommunityTemplateDefinition packageable? Any suggestions about what the problem is here and how to solve?

3

Communities are not packageable for 2GP packages.

As an unlocked package yes you can package up the ExperienceBundle (there are some known issues with ExperienceBundle as well on known issue site so do not recommend it as of today) but not as a 2GP yet.

The only recommended way to package communities is via the "Bolt Solution" which allows you to distribute your template. The Bolt solution is done via the org. Check the help article here

Carefully review the limitations of the Managed Package with Bolt Solution, specifically around upgradability. You will note that upgradability is not supported and there is a need for configuration of the Template.

I usually recommend customers to distribute Bolt Solution via a Separate Extension Package because of the limitations around upgradability.

| improve this answer | |
  • Thanks Mohith. So it looks like the "Bolt" components can only be packaged using 1GP; does bundling them with the LWCs, Apex etc mess up the ability to upgrade those in the future? – Keith C May 21 at 6:36
  • Really looking for a bit more detail here of the pros/cons if you have that. – Keith C May 21 at 10:05
  • 1
    Here are the considerations- help.salesforce.com/…. You can upgrade your package up but some components won’t be upgraded as listed in the doc. – Mohith Shrivastava May 21 at 11:45
  • 1
    Thanks again Mohith. – Keith C May 21 at 12:53
  • 1
    I forgot to mention, Bolt needs 1GP packaging. – Mohith Shrivastava May 21 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.