MatMar
MatMar
CDCloudflare Developers
Created by MatMar on 3/11/2025 in #pages-help
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
1 replies