---
title: "Missing `loader` Prop on `next/image`"
url: "https://nextjs.org/docs/messages/next-image-missing-loader"
---


## 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)