{"record":{"id":"8a268472ecc13fe7","repo":"toeverything/AFFiNE","slug":"schema-not-found-for-block-this-model-id-flavo","errorCode":null,"errorMessage":"Schema not found for block ${this.model.id}, flavour ${this.model.flavour}","messagePattern":"Schema not found for block (.+?), flavour (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"blocksuite/framework/std/src/view/element/block-component.ts","lineNumber":91,"sourceCode":"    return childModels\n      .map(child => {\n        return this.std.view.getBlock(child.id);\n      })\n      .filter((x): x is BlockComponent => !!x);\n  }\n\n  get flavour(): string {\n    return this.model.flavour;\n  }\n\n  get host() {\n    return this.std.host;\n  }\n\n  get isVersionMismatch() {\n    const schema = this.store.schema.flavourSchemaMap.get(this.model.flavour);\n    if (!schema) {\n      console.warn(\n        `Schema not found for block ${this.model.id}, flavour ${this.model.flavour}`\n      );\n      return true;\n    }\n    const expectedVersion = schema.version;\n    const actualVersion = this.model.version;\n    if (expectedVersion !== actualVersion) {\n      console.warn(\n        `Version mismatch for block ${this.model.id}, expected ${expectedVersion}, actual ${actualVersion}`\n      );\n      return true;\n    }\n\n    return false;\n  }\n\n  get model() {\n    if (this._model) {","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/blocksuite/framework/std/src/view/element/block-component.ts#L73-L109","documentation":"Warning logged by the `isVersionMismatch` getter when the block's flavour is missing from `flavourSchemaMap` — the block's schema was never registered (unknown/removed flavour or a doc saved with a flavour this editor does not know). Returns true so the component can render a mismatch/unavailable placeholder instead of crashing.","triggerScenarios":"Triggered when a block's flavour has no registered schema in the store's flavourSchemaMap, marking the block component as version-mismatched.","commonSituations":"Occurs when opening a doc containing a block type whose extension is not registered, e.g. content from a newer version or a missing plugin. Register the block flavour or update the app.","solutions":["Register the block schema for the flavour before rendering.","Check the block flavour spelling."],"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"}