Troubleshooting
Find the message you see, then apply the fix.
zp app validate and build errors
| Message contains | Fix |
|---|---|
appId "…" must be lower-case letters, digits and hyphens | Rename the id in zuper.app.json, and rename src/<appId>.server.ts to match |
version "…" must look like 1.2.3 | Three numbers, no v, no suffix |
scope "…" must look like jobs:read or jobs:write | Scopes are ignored now (calls run with the user's permissions): remove the scopes key from zuper.app.json |
id must be lower-case letters, digits and hyphens / id is used by more than one extension | A unique slug per extension |
label must be 1-40 characters / title must be 1-40 characters | Shorten it. Actions and tabs have a label; cards and dialogs have a title |
"…" is not a supported record type | Use one of the record types in Extensions |
"…" is not a Tabler icon name | A name from tabler.io/icons, without ti- |
record-action needs onTrigger / … needs render | Actions take onTrigger; cards, tabs and dialogs take render |
primary is only allowed on a record-action / only one record action may be primary | Keep primary on one record action only |
location must be overview or apps / size must be sm, md, lg, fullscreen | Use one of the listed values |
tab id collides with the built-in job tab "…" | Rename the tab id, for example with your app id in front |
fetch to <host>, which is not in allowedDomains | Add the host to allowedDomains, or fix the URL |
Frame src must be https / Frame shows <host>, which is not in allowedDomains | Use https, and list the host in allowedDomains |
Frame can only be used in a dialog extension | Move the Frame into a dialog, and open it from your card, tab or action |
openDialog("…"), but the app has no dialog extension with that id | Fix the id, or add the dialog with zp app generate extension dialog |
api.records.<op>("<type>") names an unknown record type | Use job, customer, invoice or quote |
<appId>.server.ts exports no functions | Export at least one function, or delete the file |
function name "…" must be camelCase letters and digits | Use a camelCase name, such as getWarranty |
the bundle uses dynamic import() | Use a static import |
the bundle is … KB compressed; the limit is 500 KB | Set "runtime": "preact" and run npm install --save-dev preact, and drop heavy libraries |
Could not resolve "preact/compat/jsx-runtime" | runtime is preact but Preact isn't installed. Run npm install --save-dev preact, or set runtime back to react |
In the webapp
| You see | Fix |
|---|---|
| "… is not available to Zuper apps" | UI code used the network. See The sandbox's rules |
| The extension doesn't appear | zp app validate is clean; objects includes this record type; an 'apps' card shows only in the Apps tab; another app may already have the primary action |
| An error in place of the extension | render threw; the message is the exception. Often a field of data that hasn't loaded yet |
| "The latest build failed. The last good build still runs below." | Dev mode: fix the build error it shows |
| "This page can't be shown: …" in a dialog | The Frame's address: not https, not in allowedDomains, or not in a dialog |
A blank Frame | The site refuses to be framed (X-Frame-Options / frame-ancestors) |
ZuperEmbed.ready never resolves | The page isn't in a Zuper Frame, or it loaded a different script |
| "Dev server stopped" | zp app dev isn't running. Start it and open the new link |
| "This dev link is from an earlier zp app dev run" | Open the link the current run printed |
| "Chrome blocked this page from reaching zp app dev" | Allow Local network access in the site's settings, then reload |
| "The dev link is not valid" | Copy the full link zp app dev printed |
<type> can't be filtered by "…" (allowed: …) | Use one of the listed filter keys, or search, or the REST path. See Reading & changing data |
| A host call rejects | api.* / api.records: the signed-in user lacks permission for that call, or the path isn't relative. server.invoke: see the function's error in the terminal. ui.openDialog: one dialog per app at a time |
| Nothing happens on press or change | onPress is only on Button; TextField/Select need value kept in state (values for a multiple Select) |
Image shows a crossed-out photo | The address isn't https or isn't a valid URL, or the image failed to load. Hover the icon to see which |
| The UI draws nothing | The app used HTML elements or CSS. Use the components only |
Updated about 1 hour ago
Did this page help you?
