siyuan-note/siyuan · error
unsupported frontend
Error message
unsupported frontend [%s]
What it means
normalizeBootAppearanceFrontends maps each declared frontend to a normalized value; only "desktop" and "mobile" are supported. When the manifest itself declares a frontend list (len(manifestFrontends) > 0) and one of its values is unrecognized, loading fails with this error naming the value. If the list comes only from the plugin default, unknown values are silently skipped instead.
Solutions
- Change the unsupported value in the manifest's frontends array to "desktop" or "mobile"
- Fix case sensitivity — the match is exact lowercase
- Remove the unsupported entry if the appearance targets only supported frontends
Example fix
// manifest.json before "frontends": ["desktop", "desktop-window"] // after "frontends": ["desktop"]
Defensive patterns
Strategy: validation
Validate before calling
const SUPPORTED = new Set(["desktop", "mobile"]);
function frontendsSupported(list) {
return (list ?? []).every(f => SUPPORTED.has(f));
} Type guard
function isSupportedFrontend(f) {
return f === "desktop" || f === "mobile";
} Try / catch
try {
await loadManifest(pkgPath);
} catch (e) {
const m = String(e).match(/unsupported frontend \[(.+)\]/);
if (m) { /* rewrite manifest frontends for m[1] */ }
} Prevention
- Use only "desktop" and "mobile" in manifest frontends
- Lowercase values exactly — matching is case-sensitive
- Do not invent platform names copied from other ecosystems
When it happens
Trigger: A boot appearance manifest with `frontends` containing a value other than "desktop" or "mobile" — e.g. "desktop-window", "browser", "terminal", or case variants like "Desktop".
Common situations: Authors copying frontend names from other plugin ecosystems; inventing names for a hypothetical third platform; typos or wrong casing in the manifest.
Related errors
- no supported frontend
- displayName.default is required
- invalid appearance ID
- invalid color [ ]
- invalid display name
AI-assisted analysis of siyuan-note/siyuan@9f775e8a12 (2026-09-19).
Data as JSON: /api/errors/25fd8da1e40305ce.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/model/boot_appearance.go:715
for _, frontend := range candidates {
if frontend == "all" && len(manifestFrontends) == 0 {
for _, normalized := range []string{"desktop", "mobile"} {
if !seen[normalized] {
seen[normalized] = true
frontends = append(frontends, normalized)
}
}
continue
}
normalized := ""
switch frontend {
case "desktop":
normalized = "desktop"
case "mobile":
normalized = "mobile"
default:
if len(manifestFrontends) > 0 {
return nil, fmt.Errorf("unsupported frontend [%s]", frontend)
}
continue
}
if !seen[normalized] {
seen[normalized] = true
frontends = append(frontends, normalized)
}
}
if len(frontends) == 0 && len(manifestFrontends) == 0 && len(pluginFrontends) == 0 {
frontends = append(frontends, "desktop", "mobile")
}
if len(frontends) == 0 {
return nil, errors.New("no supported frontend")
}
return frontends, nil
}
func validateOptionalBootAppearanceColor(color string) error {View on GitHub (pinned to 9f775e8a12)