-
Notifications
You must be signed in to change notification settings - Fork 58
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
Icons aren't loaded (@nuxt-ui) #259
Comments
I'm also having same problem in my production. I'm using Nuxthub / Cloudflare, the same problem happens the first time i open up my production site any solution on this yet ?
|
@tahirmahmudzade
may fix this. |
I have the same problem, and I don't like it because I don't know where to start to fix it. Does someone know why it's happening ? I see no error or problem in the firefox dev tools so I feel like I can't do much. |
similar problem here, I turned down ssr and render with vite-pwa. when I open my home page directly icons doesn't load if there is not any trigger, and the icon loading warning in console won't show up everytime. but when I relogin my supabase user my icons render perfectly except the header breadcrumb not rendered at that time point. |
same problem, even in the nuxt-ui website or offical nuxt website or any nuxt websites. Seems like general issue. I hope will be fixed soon. |
This worked well, thanks a lot! |
cc: @benjamincanac @antfu got a few reports on twitter: https://twitter.com/kregenrek/status/1845546610731745296 |
Just chiming in that my team is continuing to have issues here, none of the "fixes" listed above work on our end (hosting on Netlify). Half of our icons don't load on new builds or when the url hasn't been viewed in a while. Then, after a refresh they usually show up. It also seems to happen to the same set of our icons every time — some use the We've tried downgrading packages, and applying the config updates listed here, but unfortunately nothing fixes it for us. We use Nuxt Icon as part of using Nuxt UI Pro. Does anyone have a different solution/workaround here? We're holding off on a public reveal of our project until this is resolved, and I'd prefer to use Nuxt Icon if possible... |
Adding some data |
Same issue for us but only locally Edit: adding clientBundle config doens't help |
I am not able to reproduce on this repo with the latest Can anyone help to send a minimal reproduction? Thanks! |
Same issue on my project in prod. Icons are loading properly in local but once in prod, the icon are showing up on 50% of the time, unless user force reload the page. Already downloaded the icons to my project and added |
After a deep digging, I found out this was because, in certain mono repo setups, there will be two versions of |
Thanks @antfu. It seems to work! I've removed
|
Hi, Thanks @antfu for your work. It seems the error still persist. I deleted the node_modules, updated all the dependencies (nuxt, icon...) to the latests, and also tried the clientBundle options described above. For some reasons sometimes the icons don't appear (very randomly) on production server. Locally with npm run dev there is no problem. I use the svg mode. |
Unfortunately, I am seeing the same thing as @dany68. This is using v1.7.2. |
Same 😔 |
Having the same problem too. But randomly, sometimes. Of course mostly after new deployment and on initial load. |
Yeah, I still don't understand when the icons are rendering and when they aren't |
If anyone still encounter this, I'd be appreciated if you can create a new issue with a minimal reproduction so I can have a deeper look. Thanks! |
Oh yeah, it works now after updating the dependency |
I deleted .output, .nuxt, node_modules and re run install with everything up to date. It seems to work now. |
Hi there and thanks so much for your work!
Recently I've upgraded
nuxt 3.12.4
tonuxt 3.13.2
,@nuxt/ui@2.18.4
to@nuxt/ui@2.18.6
,@tailwindcss/forms@0.5.7, @tailwindcss/typography@0.5.14
to@tailwindcss/forms@0.5.9, @tailwindcss/typography@0.5.15
. Here are some observations.Icons stop working on initial site loading (and 50/50% on next loads):
npm run generate
, incognito mode, no cache): no icons.What fixes an issue:
nuxt 3.12.4
with@nuxt/ui@2.18.4
and@tailwindcss/forms@0.5.7 @tailwindcss/typography@0.5.14
fixes an issue.@iconify-json/bxl, @iconify-json/heroicons, @iconify-json/heroicons-solid
) and adding:Howewer one question still bothers me. Same
nuxt/ui
.3.12.4
without the above settings works like a charm, but when updating the above deps barely loads icons. Just changing deps and the necessity of the the above arises. But why?3.12.4
andnuxt/ui@2.18.6
with@tailwindcss/forms@0.5.9, @tailwindcss/typography@0.5.15
together result in the issue without the above settings (withnuxt/ui@2.18.4
and@tailwindcss/forms@0.5.7, @tailwindcss/typography@0.5.14
everything works fine).3.13.2
withnuxt/ui@2.18.6
result in the issue as well (keeping tailwind deps old). And sometimes just upgrading to3.13.2
results in the issue.With the minimal amount of site payload (one page - 2-3 icons) -
3.13.2
works fine without the above changes. When full project is in place - icons without the above changes stop working. I'm talking aboutnpm run generate
withssr:true
.npm run build
works in every case.Can someone elaborate?
Also you can easily reproduce this behavior (node
v20.17.0)
.repo: https://github.com/gAlleb/nuxt-om
npm install
.Run
npm run generate
- all icons work fine.Upgrade
npm install @nuxt/ui@2.18.6 @tailwindcss/forms@0.5.9 @tailwindcss/typography@0.5.15
.or
Upgrade
npx nuxi upgrade
andnpm install @nuxt/ui@2.18.6
Navigate to webpage (generated by
npm run generate
, incognito mode, no cache).Icons won't load without
clientBundle
setting and addinglocal collections
.Thanks!
The text was updated successfully, but these errors were encountered: