{"record":{"id":"b8a859a53a3d4ba8","repo":"Foundry376/Mailspring","slug":"ignoring-component-trying-to-register-with-old-com","errorCode":null,"errorMessage":"Ignoring component trying to register with old CommandRegistry.register syntax","messagePattern":"Ignoring component trying to register with old CommandRegistry\\.register syntax","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/registries/component-registry.ts","lineNumber":61,"sourceCode":"  //   * `role`: (optional) {String} If you want to display your component in a location\n  //      desigated by a role, pass the role identifier.\n  //\n  //   * `modes`: (optional) {Array} If your component should only be displayed\n  //      in particular Workspace Modes, pass an array of supported modes.\n  //      ('list', 'split', etc.)\n  //\n  //   * `location`: (optional) {Object} If your component should be displayed in a\n  //      column or toolbar, pass the fully qualified location object, such as:\n  //      `WorkspaceStore.Location.ThreadList`\n  //\n  //   Note that for advanced use cases, you can also pass (`modes`, `roles`, `locations`)\n  //   with arrays instead of single values.\n  //\n  // This method is chainable.\n  //\n  register(component, options: ComponentRegistryDescriptor) {\n    if (component.view) {\n      return console.warn(\n        'Ignoring component trying to register with old CommandRegistry.register syntax'\n      );\n    }\n\n    if (!options) {\n      throw new Error(\n        'ComponentRegistry.register() requires `options` that describe the component'\n      );\n    }\n    if (!component) {\n      throw new Error('ComponentRegistry.register() requires `component`, a React component');\n    }\n    if (!component.displayName) {\n      throw new Error(\n        'ComponentRegistry.register() requires that your React Component defines a `displayName`'\n      );\n    }\n","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/Foundry376/Mailspring/blob/648c685d602ece6bb00c22534b8734de6ac644b3/app/src/registries/component-registry.ts#L43-L79","documentation":"Legacy-API warning in ComponentRegistry.register: a package called register with the old CommandRegistry-style argument signature (deprecated since Mailspring 1.x). The registration is ignored — the component never appears — and the console message tells the developer to migrate to the current options-object API.","triggerScenarios":"Thrown at app/src/registries/component-registry.ts:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update the package to call ComponentRegistry.register with a single options object ({location, modes, role, ...})","If the package is unmaintained, fork or patch it to use the current registry API"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"648c685d602ece6bb00c22534b8734de6ac644b3","analyzedAt":"2026-09-03T02:00:24.311Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T07:17:11.731Z"}