Skip to content
Inkoxide

Search covers every page and heading of the docs. Use ↑ ↓ and ↵.

Errors

Edit this page

A problem in a template is a TemplateError (a RenderError with the code TEMPLATE_ERROR from the render functions), whose componentStack names the elements and components from the element at fault outwards, as React's does:

<View> cannot be inside <Text>. A Text contains only strings, numbers, <Text>, <Link>, …
    in View
    in Address
    in Page
    in Document
    in Invoice

What a template throws names the components of the error's trace (each template is a function named after its component), where the code keeps its names, then the elements around the innermost. Listeners ((click)) are errors: nothing happens in a PDF.

Synced from packages/angular/GUIDE.md in the inkoxide repository.