Cloudflare Could not load virtual:astro-icon
I was trying to update something on my cloudflare pages site, and suddenly I'm getting the following error. All I did was change an HTML lang tag. I'm guessing Astro Icons have changed in some way since 2 months ago?
Deployment works on my machine with the same version of Node and
npm
as Cloudflare. Any ideas?1 Reply
Yes, Astro Icons changed. It now generates the types for your @iconify icons in the .astro folder. Probably you have something like "astro check && astro build" in your package.json's build command. -> Types are checked before beeing generated
Change it to "astro sync && astro check && astro build"
If you delete your .astro folder locally, you should be able to replicate this issue on your local machine as well. It is not uploaded to cloudflare as it is in .gitignore - as it should be