Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bre7 opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@bre7
Copy link

bre7 commented Jan 22, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant