# `import.duplicate`

Name or folder imported twice.

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

```jadpo
use shared/types { Percent }
use shared/types { Stock }

action stock_loaf(each: Stock, reduction: Percent) -> Stock {
    return each
}
```

```text
error: `shared/types` has two `use` lines
 --> domains/bakery/actions/stock_loaf.jadpo:2:5
  |
1 | use shared/types { Percent }
  |     ------------ first line
2 | use shared/types { Stock }
  |     ^^^^^^^^^^^^ a second line
  reason: Each folder has one `use` line, listing every name the file takes from it; `use shared/types` is written twice.
  next: Move its names onto the first `shared/types` line (agent)
  rule: import.duplicate
  help: https://jadpo.dev/docs/errors/import.duplicate

check failed: 1 error, 4 files
```
