Skip to content

Contradiction on two pages of the documentation #1590

@maciejmaksymo

Description

@maciejmaksymo

On this page we read:
"Because the @microsoft/sp-office-ui-fabric-core package is already installed in your solution by the Yeoman generator, we recommend that you uninstall that package if you decide to use Fabric components and reduce your component bundle size."

and later:
"Fabric components in your solution are locked to the specific version of Fabric React that you installed. You need to update the Fabric React package to get any new components if they are available in a newer package version. Because the Fabric components are included in the component bundle, it may increase the size of your component bundle. However, this approach is the only approach that is officially supported when Office UI Fabric React is being used in SharePoint Framework solutions."

While on the page
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/use-fabric-react-components
you can find the following:
"With the current release of the SharePoint Framework, we recommend that you use the Office UI Fabric and Fabric React that ships with the generator. We don't recommend that you update the Office UI Fabric and Fabric React packages independently because that might conflict with the already available version in SharePoint, and as a result, your web part may fail to function as expected."

Which is the supported way?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Labels

Good First Issue 🏆Great suggestion for someone from the community to jump in as their first issue to address / fix!area:docsCategory: SharePoint developer/development documentation relatedarea:fluent-uiCategory: Fluent UI / Office UI Fabric / Fabric Reactarea:spfxCategory: SharePoint Framework (not extensions related)help wantedLooking for someone to help with this issue (documentation fix, etc).status:fixed-next-dropIssue planned to be fixed in an upcoming release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions