Troubleshooting

Find the message you see, then apply the fix.

zp app validate and build errors

Message containsFix
appId "…" must be lower-case letters, digits and hyphensRename the id in zuper.app.json, and rename src/<appId>.server.ts to match
version "…" must look like 1.2.3Three numbers, no v, no suffix
scope "…" must look like jobs:read or jobs:writeScopes 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 extensionA unique slug per extension
label must be 1-40 characters / title must be 1-40 charactersShorten it. Actions and tabs have a label; cards and dialogs have a title
"…" is not a supported record typeUse one of the record types in Extensions
"…" is not a Tabler icon nameA name from tabler.io/icons, without ti-
record-action needs onTrigger / … needs renderActions take onTrigger; cards, tabs and dialogs take render
primary is only allowed on a record-action / only one record action may be primaryKeep primary on one record action only
location must be overview or apps / size must be sm, md, lg, fullscreenUse 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 allowedDomainsAdd the host to allowedDomains, or fix the URL
Frame src must be https / Frame shows <host>, which is not in allowedDomainsUse https, and list the host in allowedDomains
Frame can only be used in a dialog extensionMove the Frame into a dialog, and open it from your card, tab or action
openDialog("…"), but the app has no dialog extension with that idFix the id, or add the dialog with zp app generate extension dialog
api.records.<op>("<type>") names an unknown record typeUse job, customer, invoice or quote
<appId>.server.ts exports no functionsExport at least one function, or delete the file
function name "…" must be camelCase letters and digitsUse a camelCase name, such as getWarranty
the bundle uses dynamic import()Use a static import
the bundle is … KB compressed; the limit is 500 KBSet "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 seeFix
"… is not available to Zuper apps"UI code used the network. See The sandbox's rules
The extension doesn't appearzp 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 extensionrender 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 dialogThe Frame's address: not https, not in allowedDomains, or not in a dialog
A blank FrameThe site refuses to be framed (X-Frame-Options / frame-ancestors)
ZuperEmbed.ready never resolvesThe 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 rejectsapi.* / 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 changeonPress is only on Button; TextField/Select need value kept in state (values for a multiple Select)
Image shows a crossed-out photoThe 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 nothingThe app used HTML elements or CSS. Use the components only

Did this page help you?