RafidMuhymin / astro-imagetools

Image Optimization tools for the Astro JS framework
astro-imagetools-docs.vercel.app
MIT License
407 stars 44 forks source link

Responsive images sets not generated with `npm run dev`, but works with `npm start` #147

Open LushawnDev opened 1 year ago

LushawnDev commented 1 year ago

Hi,

Could you run a quick test to see if this error is generally repeatable for you?

On my site I have 2 <BackgroundImage /> components and 4 <Picture /> components. Consistently if I run npm run dev only 2 responsive image sets are generated for my site (1 for <BackgroundImage /> and 1 for <Picture /> ), whereas if I run npm start to start the dev server, all 6 image sets are generated.

When the image sets don't get generated I get Cannot find module for the images, as they are never generated. Happy to supply more of my code if needed and you can't recreate the error. Thanks!

RafidMuhymin commented 1 year ago

Hi @LushawnDev ! Could you please share a link to your project?