Home › How to fix › Toolbox
CMP004Auto-fixBoth officeFabricIconFontName and iconImageUrl are set
Why it matters
SharePoint uses the Fluent icon when both are set, so your image is silently ignored.
How to fix
- Click the fix to remove officeFabricIconFontName and keep your image.
Microsoft articles
- Configure web part iconlearn.microsoft.com
- Simplify adding web parts with preconfigured entries (title, description, icon, group)learn.microsoft.com
In VS Code: right-click the finding → Apply Fix…, or use ▶ Fix step by step in the report.