Home › How to fix › Versions
VER010Needs you@types/react does not match React
Why it matters
Type definitions for a different React major give misleading errors (or hide real ones).
How to fix
- Install @types/react and @types/react-dom for the same major, and update any resolutions/overrides pin.
Microsoft articles
- Upgrade to React 18 (SPFx 1.24)learn.microsoft.com
- SPFx compatibility reference (Node, React, TypeScript)learn.microsoft.com
In VS Code: right-click the finding → Explain & How to Fix, or use ▶ Fix step by step in the report.