You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a issue today using the auto icons library. I noticed in the output that it said the default icons would be overrided but it instead looks like it made a separate directory and didn't override them
It also chose to use the default icon in the extension instead of using the new icon I added 😃
Reproduction
Our repo is private so I cant share but added steps I did to the next section
Steps to reproduce
have default icons in the public folder public/icon/*
install auto icons
add the @wxt-dev/auto-icons to modules
add a icon to <src>/assets/icon.png
run npm run dev
When the browser spins up, you will still see the old wxt icon and not the new icon you added
Thanks for this ticket. It's a good idea to remove the old icons anyway, but for a WXT newcomer this bug makes it confusing about what is happening and why the new icons don't show up.
Activity
aklinker1 commentedon Apr 24, 2025
Thanks for opening an issue. This does seem to be unintended... It should log a warning and overwrite them:
wxt/packages/auto-icons/src/index.ts
Lines 34 to 37 in 31071bd
The
build:manifestGeneratedhook should run after we discover icons, so not sure why this is happening off the top of my head.wxt/packages/wxt/src/core/utils/manifest.ts
Line 126 in 31071bd
I probably won't get to this for a while, but if someone else wants to tackle it, please do!
The workaround is to just not have other icons defined matching the paths WXT discovers automatically.
garretwilson commentedon Sep 19, 2025
Thanks for this ticket. It's a good idea to remove the old icons anyway, but for a WXT newcomer this bug makes it confusing about what is happening and why the new icons don't show up.