|
| 1 | +--- |
| 2 | +title: SharePoint Framework v1.21.1 release notes |
| 3 | +description: Release notes for the SharePoint Framework v1.21.1 release |
| 4 | +ms.date: 05/03/2025 |
| 5 | +ms.localizationpriority: high |
| 6 | +--- |
| 7 | +# SharePoint Framework v1.21.1 release notes |
| 8 | + |
| 9 | +This is a _minor bump_ that fixes the issues around SharePoint Framework solution packaging, provides a fix on a regression related on the CSS handling with the previous [released 1.21 version](release-1.21.md). |
| 10 | + |
| 11 | +> [!TIP] |
| 12 | +> It's safe to keep on using SharePoint Framework 1.21 version (if you don't have CSS issues with it), but we do recommend using always the latest version in the production, which in this case would be the 1.17.1, which has fixes on the reported GitHub issues as listed below. |
| 13 | +
|
| 14 | +**Released:** May 3, 2025 |
| 15 | + |
| 16 | +[!INCLUDE [spfx-release-notes-common](../../includes/snippets/spfx-release-notes-common.md)] |
| 17 | + |
| 18 | +## Install the latest version |
| 19 | + |
| 20 | +Install the latest release of the SharePoint Framework (SPFx) by including the **@latest** tag: |
| 21 | + |
| 22 | +```console |
| 23 | +npm install @microsoft/generator-sharepoint@next --global |
| 24 | +``` |
| 25 | + |
| 26 | +## Upgrading projects from v1.21 to v1.21.1 |
| 27 | + |
| 28 | +In the project's **package.json** file, identify all SPFx v1.21 packages. For each SPFx package: |
| 29 | + |
| 30 | +1. Uninstall the existing v1.21 package: |
| 31 | + |
| 32 | + ```console |
| 33 | + npm uninstall @microsoft/{spfx-package-name}@1.21 |
| 34 | + ``` |
| 35 | + |
| 36 | +1. Install the new v1.21.1 package: |
| 37 | + |
| 38 | + ```console |
| 39 | + npm install @microsoft/{spfx-package-name}@latest --save --save-exact |
| 40 | + ``` |
| 41 | + |
| 42 | +[!INCLUDE [spfx-release-upgrade-tip](../../includes/snippets/spfx-release-upgrade-tip.md)] |
| 43 | + |
| 44 | +## Fixed Issues |
| 45 | + |
| 46 | +Here's a list of specific issues fixed around SharePoint Framework since the previous public release. |
| 47 | + |
| 48 | +- [#10205](https://github.com/SharePoint/sp-dev-docs/issues/10205) - SPFx 1.21 - SCSS/CSS Module hashes being applied twice, styling not working |
| 49 | +- [#10207](https://github.com/SharePoint/sp-dev-docs/issues/10207) - SPFx - Styles not being applied in newest version of SPFx 1.21 |
| 50 | + |
| 51 | +Also following issue has been fixed and the server side update is currently rolling in production. This means that the fix will be applied on server side without changes on the client side packages. |
| 52 | + |
| 53 | +- [#10053](https://github.com/SharePoint/sp-dev-docs/issues/10053) - Web Part Missing in Toolbox After Running Gulp Serve |
0 commit comments