Repository navigation
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
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
- SharePoint Framework:
1.24.1(and1.24.0) - Package:
@microsoft/sp-image-helper@1.24.1 - Node.js:
22.14.0 - Browser: Microsoft Edge / Google Chrome (latest)
Describe the bug / error
In SharePoint Framework 1.24.1, @microsoft/generator-sharepoint scaffolds react@18.3.1 and react-dom@18.3.1 (along with @types/react@18.2.79 and @types/react-dom@18.2.25), and @microsoft/sp-core-library@1.24.1 widened its react and react-dom peerDependencies range to >=16.13.1 <19.0.0.
However, @microsoft/sp-image-helper@1.24.1 (which is also pulled in transitively by @microsoft/sp-property-pane@1.24.1) still specifies react and react-dom peerDependencies as >=16.13.1 <18.0.0, even though its @types/react and @types/react-dom peerDependencies were widened to <19.0.0:
"peerDependencies": {
"@types/react": ">=17.0.45 <19.0.0",
"@types/react-dom": ">=17.0.17 <19.0.0",
"react": ">=16.13.1 <18.0.0",
"react-dom": ">=16.13.1 <18.0.0"
}@microsoft/sp-image-helper appears to be the only published @microsoft/sp-* package in 1.24.1 that still caps react and react-dom peerDependencies below 18.0.0.
Steps to reproduce
- Scaffold a new SPFx
1.24.1React Web Part project using@microsoft/generator-sharepoint@1.24.1(or inspectnpm view @microsoft/sp-image-helper@1.24.1 peerDependencies). - Add
@microsoft/sp-image-helper@1.24.1(or inspect the dependency tree via@microsoft/sp-property-pane@1.24.1) alongside the scaffoldedreact@18.3.1andreact-dom@18.3.1. - Run
npm installornpm ls react react-dom. - Observe the peer dependency conflict (
ERESOLVE/ invalid peer dependency) because@microsoft/sp-image-helper@1.24.1requiresreact: ">=16.13.1 <18.0.0"andreact-dom: ">=16.13.1 <18.0.0".
Expected behavior
@microsoft/sp-image-helper should specify "react": ">=16.13.1 <19.0.0" and "react-dom": ">=16.13.1 <19.0.0" in peerDependencies (matching @microsoft/sp-core-library@1.24.1) so SPFx solutions using React 18 install without peer dependency conflicts.
Activity
m365-agent-toolkit-assistant commentedon Nov 6, 2026
👋 Hi Flaviu C. (@flaviuc),
Thank you for reporting this issue. Here is an AI-generated initial response:
Classification: Bug — the reported
@microsoft/sp-image-helper@1.24.1peer range excludes React 18.3.1, which Microsoft specifies for SPFx 1.24.1. The package-metadata mismatch is a likely cause of the reportedERESOLVE; it has not been independently confirmed here.22.14.0meets the SPFx 1.24 compatibility requirements.sp-image-helper’s React peer range.Upgrade check: You are already on 1.24.1; no fixing version is established.
What to do now:
npm view @microsoft/sp-image-helper@1.24.1 peerDependenciesand the relevantnpm installERESOLVEsection so maintainers can verify the published metadata.npm install --legacy-peer-depsis a temporary bypass, not a compatibility fix; test the resulting solution before deployment.Useful links:
flaviuc commentedon Nov 6, 2026
Here is the requested
npm viewandnpm installERESOLVEoutput:1.
npm viewoutput comparing@microsoft/sp-image-helper@1.24.1and@microsoft/sp-core-library@1.24.12.
npm installERESOLVEoutput with SPFx1.24.1(react@18.3.1/react-dom@18.3.1)Ashlesha-MSFT commentedon Nov 9, 2026
Hi Flaviu C. (@flaviuc), thank you for sharing the details and reproduction steps.
We were able to reproduce the reported ERESOLVE error when installing @microsoft/sp-image-helper@1.24.1 alongside React and React DOM 18.3.1. We confirmed that the package’s peer dependency ranges still exclude React 18, unlike @microsoft/sp-core-library@1.24.1.
We’ll raise a bug with the engineering team for investigation and share updates in this thread as they become available.