Using Next.js' built-in Image Optimization requires that you bring your own version of `sharp`.
Using Next.js' built-in Image Optimization requires that you install `sharp`.
Since `sharp` is optional, it may have been skipped if you installed `next` with the [`--no-optional`](https://docs.npmjs.com/cli/install) flag or it may have been skipped if your platform does not support `sharp`.
#### Possible Ways to Fix It
#### Possible Ways to Fix It
Please install the `sharp` package in your project.
Option 1: Install the `sharp` package in your project.
```bash
```bash
npm i sharp
npm i sharp
# or
# or
yarn add sharp
yarn add sharp
```
```
Option 2: Configure an external loader in `next.config.js` such as [imgix](https://imgix.com).