B002 @ Picture
Ожидаемое поведение
Картинки отображаются.
Фактическое поведение
Картинки не отображаются. В консоли выдает ошибку Could not find Sharp.
Решение
If you are not using astro:assets for image processing, and do not wish to install Sharp, you can configure the following passthrough image service that does no processing:
import { defineConfig, passthroughImageService } from "astro/config";
export default defineConfig({
image: {
service: passthroughImageService(),
},
});
Заметки
- Мы не хотим, чтобы Astro обрабатывала наши картинки. Этим занимается наш компонент
<Picture>.