We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
22.13
3.15
Nuxt
v3.0.0-alpha.11
https://codesandbox.io/p/devbox/affectionate-sky-8vxn4g
When using compatibilityVersion: 4, the dir in icon.customCollections should be absolute path (./app/assets/icons):
compatibilityVersion: 4
dir
icon.customCollections
./app/assets/icons
✔ Nuxt Icon loaded local collection custom with 1 icons
Otherwise, when using ~/assets/icons, it doesn't find any icon:
~/assets/icons
✔ Nuxt Icon loaded local collection custom with 0 icons
nuxt.config.ts
export default defineNuxtConfig({ modules: ["@nuxt/ui"], devtools: { enabled: true }, compatibilityDate: "2024-12-19", future: { compatibilityVersion: 4, }, icon: { customCollections: [ { prefix: "custom", dir: "~/assets/icons", // not working // dir: "./app/assets/icons", // it works }, ], }, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
22.13
3.15
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.0-alpha.11
Reproduction
https://codesandbox.io/p/devbox/affectionate-sky-8vxn4g
Description
When using
compatibilityVersion: 4
, thedir
inicon.customCollections
should be absolute path (./app/assets/icons
):Otherwise, when using
~/assets/icons
, it doesn't find any icon:Additional context
nuxt.config.ts
Logs
The text was updated successfully, but these errors were encountered: