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

  1. Change the unsupported value in the manifest's frontends array to "desktop" or "mobile"
  2. Fix case sensitivity — the match is exact lowercase
  3. 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

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


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)