Troubleshooting
The canvas or its bindings are missing
- Run
bun run nitro-ui prepareafter installing or updating the package. It generates the bindings intonode_modules/nitro-ui-sketch/nitrogen/generated. - List
nitro-ui-sketchin the app's owndependencies. The NitroUI CLI ignores modules that are only dependencies of other packages. - Make the app resolve the same
nitro-coreas 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:
- The default Starlight layout caps its content at the bar's width on both platforms (margelo/nitro-ui#1215).
- On Android,
ScrollViewonly scrolls vertically (margelo/nitro-ui#1011).
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.