{"record":{"id":"cdba6f6bc6ddb7f2","repo":"toeverything/AFFiNE","slug":"cannot-find-render-flavour-flavour","errorCode":null,"errorMessage":"Cannot find render flavour ${flavour}.","messagePattern":"Cannot find render flavour (.+?)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"blocksuite/framework/std/src/view/element/lit-host.ts","lineNumber":71,"sourceCode":"  static override styles = css`\n    editor-host {\n      outline: none;\n      isolation: isolate;\n      display: block;\n      height: 100%;\n    }\n  `;\n\n  private readonly _renderModel = (model: BlockModel): TemplateResult => {\n    const { flavour } = model;\n    const block = this.store.getBlock(model.id);\n    if (!block || block.blockViewType === 'hidden') {\n      return html`${nothing}`;\n    }\n    const schema = this.store.schema.flavourSchemaMap.get(flavour);\n    const view = this.std.getView(flavour);\n    if (!schema || !view) {\n      console.warn(`Cannot find render flavour ${flavour}.`);\n      return html`${nothing}`;\n    }\n\n    const widgetViews = this.std.provider.getAll(WidgetViewIdentifier);\n    const widgets = Array.from(widgetViews.entries()).reduce(\n      (mapping, [key, tag]) => {\n        const [widgetFlavour, id] = key.split('|');\n        if (isMatchFlavour(widgetFlavour, model)) {\n          const template = html`<${tag} ${unsafeStatic(WIDGET_ID_ATTR)}=${id}></${tag}>`;\n          mapping[id] = template;\n        }\n        return mapping;\n      },\n      {} as Record<string, TemplateResult>\n    );\n\n    const tag = typeof view === 'function' ? view(model) : view;\n    return html`<${tag}","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/blocksuite/framework/std/src/view/element/lit-host.ts#L53-L89","documentation":"Warning logged in EditorHost's `_renderModel` when either the schema or the view for a model's flavour is missing from the registries — the flavour is unregistered (plugin not loaded or doc contains a flavour this build doesn't know). The model renders as `nothing`, skipping only that block; the rest of the doc still renders.","triggerScenarios":"Triggered when the lit host renderer cannot find a schema or view for a block's flavour, rendering nothing for that block.","commonSituations":"Occurs when a doc contains blocks of an unregistered flavour, typically from missing extensions or cross-version content. The block renders empty; ensure all block extensions are loaded.","solutions":["Register a renderer for the flavour.","Check the flavour name in the view spec."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b4c8548c09da21b2898443559a5b846f0ccf5dd8","analyzedAt":"2026-08-18T21:16:52.546Z","contentChangedAt":"2026-08-18T21:16:52.546Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}