Skip to content

Auto icons doesnt override default icons #1592

Closed

Description

@marcellino-ornelas

Describe the bug

Thank you for this library 🙌🏽 I love it already.

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

Image

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

System Info

System:
    OS: macOS 15.3.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 11.84 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v18.19.0/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
  Browsers:
    Chrome: 135.0.7049.96
    Safari: 18.3.1

Used Package Manager

npm

Validations

Activity

  1. added
    pending-triage
    on Apr 18, 2025
  2. added
    good first issue
    and removed
    pending-triage
    on Apr 24, 2025
  3. aklinker1 commented on Apr 24, 2025

    @aklinker1
    Member

    Thanks for opening an issue. This does seem to be unintended... It should log a warning and overwrite them:

    if (manifest.icons)
    return wxt.logger.warn(
    '`[auto-icons]` icons property found in manifest, overwriting with auto-generated icons',
    );

    The build:manifestGenerated hook should run after we discover icons, so not sure why this is happening off the top of my head.

    await wxt.hooks.callHook('build:manifestGenerated', wxt, manifest);

    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.

  4. garretwilson commented on Sep 19, 2025

    @garretwilson

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomegood first issue

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions