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.
When I use
material-icon-theme:gitin my project, I get a warning:And
clientBundle: { scan: true }also not work formaterial-icon-themeHowever, 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-iconsource code, I noticed that some collections (includingmaterial-icon-theme) are missing fromcollection-names.ts.I observed that it is generated using
scripts/collections.ts, after re-running the script,material-icon-themeappeared incollection-names, and it works correctly in my project.