Skip to content

A dependency's outputs aren't declared

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.

^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.

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

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

Or take ^outputs out of the inputs, and the task counts what it waits for by their hashes again. Inputs explains both.