# A dependency's outputs aren't declared

What "uses ^outputs in its inputs, but a task it waits for doesn't declare its outputs" means and how to fix it.

```text
error: web#build uses ^outputs in its inputs, but ui#build, which it waits for, doesn't declare its outputs
hint: Declare the outputs of ui#build in axle.toml, such as outputs = ["dist/**"], or take ^outputs out of the inputs.
```

## Why it happens

`^outputs` in a task's `inputs` hashes the files that the tasks it waits for wrote, instead of their hashes. Axle can only find those files when each of those tasks declares `outputs`, so it stops before running anything.

## How to fix it

Add `outputs` to the task the message names, in the root `axle.toml` or in its package's own file:

```toml
[tasks.build]
outputs = ["dist/**"]
```

Or take `^outputs` out of the inputs, and the task counts what it waits for by their hashes again. [Inputs](https://axlers.dev/docs/reference/configuration.md#inputs) explains both.
