SPFX Pretty

Home › How to fix › Toolbox

CMP004Auto-fix

Both 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

  1. Click the fix to remove officeFabricIconFontName and keep your image.
In VS Code: right-click the finding → Apply Fix…, or use ▶ Fix step by step in the report.