SPFX Pretty

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

  1. Install @types/react and @types/react-dom for the same major, and update any resolutions/overrides pin.
In VS Code: right-click the finding → Explain & How to Fix, or use ▶ Fix step by step in the report.