60 lines
2.4 KiB
Plaintext
60 lines
2.4 KiB
Plaintext
# Correct Custom Widget problems
|
|
|
|
## Correct an unavailable widget
|
|
|
|
The definition does not exist. Remove the unavailable tile from the board.
|
|
|
|
Then, install or create a Custom JSX v2 definition. Homarr does not provide recovery or migration for old formats.
|
|
|
|
## Correct an invalid saved definition
|
|
|
|
The Custom Widgets page isolates a definition that does not conform to the current schema. The other definitions remain available.
|
|
|
|
An invalid definition shows its validation errors. You can delete it.
|
|
|
|
You cannot edit, enable, export, duplicate, publish, or select an invalid definition. Recreate the definition or import a valid definition.
|
|
|
|
Homarr does not migrate old Custom JSX formats.
|
|
|
|
## Correct validation errors
|
|
|
|
Read the first schema or JSX diagnostic. Use its path to find the invalid value.
|
|
|
|
Make sure keyed API source and request names are valid and unique.
|
|
|
|
Make sure that each named request references an API source. Use explicit `$option` and `$param` references.
|
|
|
|
Make sure every option default matches its control. Use the correct request kind for each runtime component.
|
|
|
|
An incomplete API source URL or icon URL causes a form validation error. The workbench keeps the draft open.
|
|
|
|
The workbench marks the invalid field while you type. An invalid URL does not replace the form with the error boundary.
|
|
|
|
An invalid definition disables only the widget preview. The Data, Options, Actions, and Diagnostics tabs remain available.
|
|
|
|
The Diagnostics tab shows the current schema errors.
|
|
|
|
## Correct request errors
|
|
|
|
Check the API source network scope. Check the base URL and credentials.
|
|
|
|
Check the request method, path, body, direct value bindings, and board permission.
|
|
|
|
For “invalid placeholder,” use `{option:name}` or `{param:name}`. Load queries can only reference options. The preview journal does not show credentials.
|
|
|
|
The journal shows the method, request ID, path template, status, and duration.
|
|
|
|
## Correct a Mantine prop warning
|
|
|
|
`UNKNOWN_MANTINE_PROP` is a warning. Homarr passes the prop to Mantine.
|
|
|
|
Check the prop in the documentation for the installed Mantine version. `BLOCKED_CAPABILITY` identifies an unsafe capability.
|
|
|
|
Use safe widget options, temporary inputs, or named requests instead.
|
|
|
|
## Repair an existing item
|
|
|
|
The widget option definitions changed and the saved values are invalid. Open the item settings.
|
|
|
|
Correct the marked configuration values. Homarr does not infer widget option migrations.
|