Open oripka opened 3 days ago
Did it work before by specifying the icons
as ['flag', 'heroicons', 'simple-icons', 'ph']
instead of all
? 🤔
After updating the packages it did not work neither with ['flag', 'heroicons', 'simple-icons', 'ph']
nor with all
.
This happens on Vercel deployments
Sorry but I can't help you debug an upgrade that big, could you please provide a minimal reproduction?
It seems that this is only happening if the icon is only defined in the content folder in a yml file. If the same icon is also used in a vue file than the icon is included in the production build
Are you deploying on CloudFlare? 🤔
No, Vercel
Have you enabled the future.compatibilityVersion
to 4? A reproduction would be way easier..
Ok, I am working on a reproduction. I haven't set the future.compatibilityVersion
but setting
icons: {
dynamic: true
},
makes it work
If you're missing the heroicons icons, why don't you have the @iconify-json/heroicons
dependency installed?
Yeah, I noticed that too, but I don't think that is the problem as ph
icons are missing too and were installed, and the issues persists after installing @iconify/json
.
I create a repo here is the site: https://nuxt-ui-icon-issue-2uqpejate-oripkas-projects.vercel.app/ (if it does not work, try this one: https://nuxt-ui-icon-issue.vercel.app/) here is the repository: https://github.com/oripka/nuxt-ui-icon-issue
i-heroicons-rocket-launch
is in the index.vue
and the mycontent.yml
and works. i-ph-terminal-window
is also displayed (it is referenced in the app.config.ts
. The other icons are not displayed. I
"@iconify-json/heroicons": "^1.1.21",
"@iconify-json/ph": "^1.1.13",
"@iconify/json": "^2.2.225",
The URL above might be protected, this should work: https://nuxt-ui-icon-issue.vercel.app/
Environment
Version
v2.17.0
Reproduction
In production
In dev
Description
Icons are not displayed in the production build. I am using Nuxt UI Pro with the stock components. This his happening after updating all my packages (I did not update them for a couple of weeks)
content.yml
index.vue
I tried setting this in
nuxt.config.ts
with this
packages.json
Before I had
with this packages.json
Both configs do not work. All icons are affected, above I only use heroicons but also ph is affected.
Additional context
No response
Logs
No response