icon
icon copied to clipboard
missing some collection
When I use material-icon-theme:git in my project, I get a warning:
WARN [Icon] Collection material-icon-theme is not found locally
We suggest to install it via npm i -D @iconify-json/material-icon-theme to provide the best end-user experience.
And clientBundle: { scan: true } also not work for material-icon-theme
However, I have confirmed that I have already installed @iconify-json/material-icon-theme, and everything works fine for other collections.
While looking through the nuxt-icon source code, I noticed that some collections (including material-icon-theme) are missing from collection-names.ts.
I observed that it is generated using scripts/collections.ts, after re-running the script, material-icon-theme appeared in collection-names, and it works correctly in my project.