Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

E007: Import Not Found

Severity: Warning

import target not found: ./missing.nix

An import expression references a file path that does not exist on disk.

Common causes

  • The imported file was moved or renamed without updating the import.
  • The path is relative and the working directory differs from what was expected.
  • The file hasn’t been created yet.

How to fix

  • Verify the file path is correct relative to the importing file.
  • If the file is generated or fetched at build time, tix won’t see it during static analysis. Add a type annotation instead:
    /** type: generated :: { version: string, ... } */
    generated = import ./generated.nix;