SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1.01k forks source link

Get Warning: Some icons were re-registered. Applications should only call registerIcons for any given icon once #9660

Open Mengting233 opened 5 months ago

Mengting233 commented 5 months ago

Node version: v18.17.1 SPFx version: 1.18.2 Instruction: https://learn.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/using-page-placeholder-with-extensions

I followed the instruction and served the extension, but the warning icon is not showing. I get the warning in console below:

Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: GlobalNavButton, ChevronDown, ChevronUp, Edit, Add, Cancel, More, Settings, Mail, Filter (+ 1756 more)

image

image

image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

kbeeveer46 commented 5 months ago

It may not be your code that's causing this. It also shows this warning on a blank workbench page when you click the plus sign to add a web part to the page. Either clicking on the plus sign icon or when the pop up appears with the list of web parts causes this warning, as well, and it's been there for years. Since Microsoft's own code causes this warning in that instance it may be their code causing the warning in your instance, as well.