next.js/errors/next-image-missing-loader.mdx
next-image-missing-loader.mdx18 lines798 B
---
title: 'Missing `loader` Prop on `next/image`'
---

## Why This Error Occurred

When using the `next/image` component with [`loader="custom"`](/docs/app/api-reference/config/next-config-js/images) in `next.config.js`, you must provide the [`loader`](/docs/pages/api-reference/components/image#loader) prop to the component with your custom implementation.

## Possible Ways to Fix It

- Add the [`loader`](/docs/pages/api-reference/components/image#loader) prop to all usages of the `next/image` component.
- Change the [`loader`](/docs/app/api-reference/config/next-config-js/images) configuration in `next.config.js`.

## Useful Links

- [Image Optimization Documentation](/docs/pages/api-reference/components/image)
- [`next/image` Documentation](/docs/pages/api-reference/components/image)
Quest for Codev2.0.0
/
SIGN IN