Skip to content

Question: Correct way to deploy solutions depending on library component solution #10509

@diabhoil

Description

@diabhoil

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

Question for all browsers and all SPFx versions

Issue description

Its not an issue, its a question:
What is the right way to deploy solutions. We have several solutions with webparts and one solution with an library component to share some code.

When we update one solution and the library component solution we often have the problem that the webparts wont load anymore:

Image

The issue is that some new (added in the newest version) function in the library component solution is not found. When I look in the console/source explorer I can see, that the library component is an older version. Its maybe loaded from another solution on the page, which we didnt update.

Do we have to update all solutions which depend on the library component solution if the library is deployed in a new version? Even if we didnt change "existing" code in the library and just added newer code?
Where does the "old" library code come from when we replaced it to a new version in the tenant app catalog?

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)sharepoint-developer-supportsharepoint-developer-support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions