siyuan-note/siyuan · error
no supported frontend
Error message
no supported frontend
What it means
After normalization, if the resulting frontend list is empty (and neither the manifest nor the plugin declared any frontends could not be defaulted — i.e. some inputs existed but none normalized to a supported value), the loader rejects the package with "no supported frontend". A boot appearance must target at least one supported frontend (desktop or mobile).
Solutions
- Add "desktop" and/or "mobile" to the manifest's frontends array
- Alternatively remove the frontends array entirely so the default ["desktop", "mobile"] applies
- Correct misspelled frontend identifiers to the supported lowercase values
Example fix
// manifest.json before "frontends": ["browser"] // after "frontends": ["desktop", "mobile"]
Defensive patterns
Strategy: validation
Validate before calling
function hasAtLeastOneFrontend(manifest) {
const f = manifest.frontends ?? [];
return f.length === 0 || f.some(x => x === "desktop" || x === "mobile");
} Try / catch
try {
await loadManifest(pkgPath);
} catch (e) {
if (String(e).includes("no supported frontend")) {
// set frontends to ["desktop", "mobile"] or remove the field
}
} Prevention
- Omit `frontends` to accept the desktop+mobile default
- Ensure at least one of "desktop"/"mobile" survives any filtering
- Do not leave a frontends array containing only stale values
When it happens
Trigger: A manifest that declares only unsupported frontend values which were filtered out (leaving frontends empty while inputs were non-empty), so neither the all-empty default ("desktop","mobile") nor any normalized entry applies.
Common situations: A manifest listing only obsolete or misspelled frontend identifiers; a partially edited manifest where all supported entries were deleted but unsupported ones remained.
Understand the failure class
Background: "must not be empty", "cannot be empty" — required-field validation errors across open-source libraries — this error's family across 41 libraries.
Related errors
- unsupported 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/d10d57d311a1610f.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/model/boot_appearance.go:728
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 {
if color != "" && !bootAppearanceColorPattern.MatchString(color) {
return fmt.Errorf("invalid color [%s]", color)
}
return nil
}
func isValidBootAppearanceID(id string) bool {
return len(id) <= 64 && bootAppearanceIDPattern.MatchString(id)
}
func isSafeBootAppearanceRelativePath(relativePath string) bool {
if relativePath == "" || len(relativePath) > maxBootAppearancePathLength || strings.Contains(relativePath, "\\") ||
strings.ContainsAny(relativePath, `<>:"|?*`) || strings.HasPrefix(relativePath, "/") ||View on GitHub (pinned to 9f775e8a12)