{"record":{"id":"d10d57d311a1610f","repo":"siyuan-note/siyuan","slug":"no-supported-frontend","errorCode":null,"errorMessage":"no supported frontend","messagePattern":"no supported frontend","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/boot_appearance.go","lineNumber":728,"sourceCode":"\t\t\tnormalized = \"desktop\"\n\t\tcase \"mobile\":\n\t\t\tnormalized = \"mobile\"\n\t\tdefault:\n\t\t\tif len(manifestFrontends) > 0 {\n\t\t\t\treturn nil, fmt.Errorf(\"unsupported frontend [%s]\", frontend)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\tif !seen[normalized] {\n\t\t\tseen[normalized] = true\n\t\t\tfrontends = append(frontends, normalized)\n\t\t}\n\t}\n\tif len(frontends) == 0 && len(manifestFrontends) == 0 && len(pluginFrontends) == 0 {\n\t\tfrontends = append(frontends, \"desktop\", \"mobile\")\n\t}\n\tif len(frontends) == 0 {\n\t\treturn nil, errors.New(\"no supported frontend\")\n\t}\n\treturn frontends, nil\n}\n\nfunc validateOptionalBootAppearanceColor(color string) error {\n\tif color != \"\" && !bootAppearanceColorPattern.MatchString(color) {\n\t\treturn fmt.Errorf(\"invalid color [%s]\", color)\n\t}\n\treturn nil\n}\n\nfunc isValidBootAppearanceID(id string) bool {\n\treturn len(id) <= 64 && bootAppearanceIDPattern.MatchString(id)\n}\n\nfunc isSafeBootAppearanceRelativePath(relativePath string) bool {\n\tif relativePath == \"\" || len(relativePath) > maxBootAppearancePathLength || strings.Contains(relativePath, \"\\\\\") ||\n\t\tstrings.ContainsAny(relativePath, `<>:\"|?*`) || strings.HasPrefix(relativePath, \"/\") ||","sourceCodeStart":710,"sourceCodeEnd":746,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/kernel/model/boot_appearance.go#L710-L746","documentation":"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).","triggerScenarios":"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.","commonSituations":"A manifest listing only obsolete or misspelled frontend identifiers; a partially edited manifest where all supported entries were deleted but unsupported ones remained.","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"],"exampleFix":"// manifest.json before\n\"frontends\": [\"browser\"]\n// after\n\"frontends\": [\"desktop\", \"mobile\"]","handlingStrategy":"validation","validationCode":"function hasAtLeastOneFrontend(manifest) {\n  const f = manifest.frontends ?? [];\n  return f.length === 0 || f.some(x => x === \"desktop\" || x === \"mobile\");\n}","typeGuard":null,"tryCatchPattern":"try {\n  await loadManifest(pkgPath);\n} catch (e) {\n  if (String(e).includes(\"no supported frontend\")) {\n    // set frontends to [\"desktop\", \"mobile\"] or remove the field\n  }\n}","preventionTips":["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"],"tags":["boot-appearance","frontend","validation"],"backgroundTag":"empty-required-field","analyzedSha":"9f775e8a12daef8255556097396f9b2739078892","analyzedAt":"2026-09-19T03:17:15.984Z","contentChangedAt":"2026-09-19T03:17:15.984Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}