Skip to content

Unable to locate @iconify-json/* packages on build when installed with yarn v4 #263

Open
@bre7

Description

What version of astro-icon are you using?

v1.1.5

Astro Info

Astro                    v5.1.8
Node                     v22.12.0
System                   Windows (x64)
Package Manager          yarn
Output                   static
Adapter                  none
Integrations             astro-icon

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Unable to build demo with yarn 4.6.0
astro-icon is unable to fetch icon-sets when using yarn berry

λ yarn dev
17:27:47 [types] Generated 2ms
17:27:47 [content] Syncing content
17:27:47 [content] Synced content

astro v5.1.8 ready in 4926 ms

┃ Local http://localhost:4321/
┃ Network use --host to expose

17:27:47 watching for file changes...
[astro-icon] "bi" does not appear to be a valid iconify collection! Did you install the "@iconify-json/bi" dependency?
[astro-icon] "fe" does not appear to be a valid iconify collection! Did you install the "@iconify-json/fe" dependency?
[astro-icon] "ic" does not appear to be a valid iconify collection! Did you install the "@iconify-json/ic" dependency?
[astro-icon] "ri" does not appear to be a valid iconify collection! Did you install the "@iconify-json/ri" dependency?
17:28:25 [astro-icon] Loaded icons from src/icons
17:28:25 [200] / 38ms
17:28:25 [ERROR] Unable to locate the "ic" icon set!
Hint:
It looks like the "ic" set was not loaded.

Did you install the "@iconify-json/ic" dependency?

Stack trace:
at N:\test\astro-icon-main\G:...\Local\Yarn\Berry\cache\astro-icon-npm-1.1.5-f9733600a9-10c0.zip\node_modules\astro-icon\components\Icon.astro:81:15
[...] See full stack trace in the browser, or rerun with --verbose.

What's the expected result?

Demo should be built successfully.

Link to Minimal Reproducible Example

https://github.com/bre7/astro-icons-error

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions