ErrorsProject layout and modules · rule
import.unknown
Import names nothing in its folder.
Area 1, Project layout and modules; not declinable; the next step is usually the agent's.
A use line names a domain, a folder of a domain or of shared/, or a
root file, and only names that are there. A name imported from the wrong
folder gets the edit that moves it:
use shared/failures { Stock }action stock_loaf(each: Stock) -> Stock { return each}
error Stock isn't in shared/failures
--> domains/bakery/actions/stock_loaf.jadpo:1:23
|1 | use shared/failures { Stock } | ^^^^^ not in this folder
- reason
- A
useline brings in names from the folder it names;Stockis a type inshared/types/stock.jadpo, so it comes in fromshared/types. - next
- Import
Stockfromshared/types(agent) - rule
- import.
unknown - help
- https://jadpo.
dev/docs/errors/import. unknown
Markdown for agents: /docs/errors/import.unknown.md.Built from Jadpo main at aee2e8f.