Failed to build project

Hello, everyone. I'm trying to build and deploy simple project form GitLab to Cloudflare Pages. I followed instructions for Astro (https://developers.cloudflare.com/pages/framework-guides/deploy-an-astro-site/) then added Tailwind CSS as instructed in https://docs.astro.build/en/guides/styling/#css-integrations . So far everything worked as expected. Then I wanted to use Iconify for Tailwind CSS (@iconify/tailwind4) but it only works for me during local development (npm run dev). When I try to deploy to Pages it fails to build with [@tailwindcss/vite:generate:build] Cannot load icon set for "mdi". Install "@iconify-json/mdi" as dev dependency? but all required dependencies are specified in package.json. Is it possible that not all dependencies are installed in CF builder they work differently than on my local machine? Mateusz Marzantowicz
Cloudflare Docs
Astro · Cloudflare Pages docs
Astro is an all-in-one web framework for building fast, content-focused websites. By default, Astro builds websites that have zero JavaScript runtime code.
Docs
Styles and CSS
Learn how to style components in Astro with scoped styles, external CSS, and tooling like Sass and PostCSS.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?