typstgenv0.3.0

← All examples

Missing import

The imported file exists in neither the input folder nor the template directory. typstgen compile missing-import.typ --config typstgen.toml prints the Typst error to stderr and exits with code 1.

Missing import

examples/missing-import.typ
// Imports a file that exists in no search root, so compilation fails.
#import "footer.typ": footer

#footer
error: typst compilation failed:
missing-import.typ:2:9: error: file not found (searched at /footer.typ)
  • error
  • exit code 1