Skip to content

notes-on-solution-packaging incorrect #10423

@brianpmccullough

Description

@brianpmccullough

Target SharePoint environment

SharePoint Online

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

💥 SharePoint Framework

Developer environment

None

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

N/A

Describe the bug / error

The note on this developer documentation is incorrect.

"If this is omitted or empty, the task creates a single Feature for every component (a 1:1 mapping)."

The "or empty" has been found to not be accurate, based on SPFx 1.21 tooling. It should read instead:

"If this is omitted, the task creates a single Feature for every component (a 1:1 mapping)."

https://github.com/SharePoint/sp-dev-docs/blob/main/docs/spfx/web-parts/basics/notes-on-solution-packaging.md

Steps to reproduce

  1. Scaffold a new SPFx 1.21 web part. (Alternatively, leverage an older upgraded project before adding features was common/default for web part packages that had no requirements to deploy anything else such as site columns, content types, etc)
  2. Remove the feature, but leave the package-solution.json to have an empty features:[] node.
  3. Build, Bundle, Package the solution.
  4. Deploy to appcatalog (site or tenant), add the app.

Expected behavior

Web Parts available to add to pages.

Actual
No webparts from sppkg available.

Metadata

Metadata

Assignees

Labels

area:docsCategory: SharePoint developer/development documentation relatedsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions