Skip to main content

Troubleshooting

The canvas or its bindings are missing​

  • Run bun run nitro-ui prepare after installing or updating the package. It generates the bindings into node_modules/nitro-ui-sketch/nitrogen/generated.
  • List nitro-ui-sketch in the app's own dependencies. The NitroUI CLI ignores modules that are only dependencies of other packages.
  • Make the app resolve the same nitro-core as this package. See Pinning nitro-core.

The tool picker bar doesn't scroll​

With NitroUI 0.3.0, the ToolPicker bar doesn't scroll when its items are wider than the bar. The bar is a row ScrollView:

Until both fixes ship, keep the bar narrower than the screen with items or density="compact".

Calls on a controller throw after unmount​

A CanvasController controls one mounted canvas. Once its canvas is unmounted, every call throws the canvas view of this controller was released. Keep the Drawing instead: it outlives the canvas.

Undo stops working after many steps​

Drawing keeps 100 undo steps. Older changes can't be undone.

Errors​

Every error message starts with nitro-ui-sketch:. The error reference lists them with their causes.