# `import.missing`

Name used without its import.

Area 1, [Project layout and modules](../topics/project-layout-and-modules.md); not declinable; the next step is usually the agent's.

Every name a file uses that it doesn't declare comes in on a `use` line
(see [Imports](../topics/imports.md)). The edit adds it, and `jadpo fmt` adds every
missing import at once:



```jadpo
action stock_loaf(each: Stock) -> Stock {
    return each
}
```

```text
error: `Stock` isn't imported
 --> domains/bakery/actions/stock_loaf.jadpo:1:25
  |
1 | action stock_loaf(each: Stock) -> Stock {
  |                         ^^^^^ not imported
  reason: Every name a file uses that it doesn't declare comes in on a `use` line, so a reader sees where it lives; `Stock` is a type in `shared/types/stock.jadpo`.
  next: Add `use shared/types { Stock }`, or run `jadpo fmt`, which adds every missing import (agent)
  rule: import.missing
  help: https://jadpo.dev/docs/errors/import.missing

check failed: 1 error, 3 files
```
