{"record":{"id":"52e96b61135b8a58","repo":"toeverything/AFFiNE","slug":"component-stringifyidentifier-identifier-not-f","errorCode":null,"errorMessage":"Component ${stringifyIdentifier(identifier)} not found in container","messagePattern":"Component (.+?) not found in container","errorType":"exception","errorClass":"ComponentNotFoundError","httpStatus":null,"severity":"error","filePath":"packages/common/infra/src/framework/core/provider.ts","lineNumber":180,"sourceCode":"  ) {\n    const factory = this.provider.collection.getFactory(\n      identifier,\n      this.provider.scope\n    );\n    if (!factory) {\n      if (this.provider.parent && !sameScope) {\n        return this.provider.parent.getRaw(identifier, {\n          sameScope: sameScope,\n          optional,\n          noCache,\n          props,\n        });\n      }\n\n      if (optional) {\n        return undefined;\n      }\n      throw new ComponentNotFoundError(identifier);\n    }\n\n    const runFactory = () => {\n      const nextResolver = this.track(identifier);\n      try {\n        return withContext(() => factory(nextResolver), {\n          provider: this.provider,\n          props,\n        });\n      } catch (err) {\n        if (err instanceof ComponentNotFoundError) {\n          throw new MissingDependencyError(\n            identifier,\n            err.identifier,\n            this.stack\n          );\n        }\n        throw err;","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/common/infra/src/framework/core/provider.ts#L162-L198","documentation":"getRaw throws ComponentNotFoundError when no factory exists for the identifier in this scope (and no parent scope supplies it and it is not optional), the DI framework's standard missing-service failure.","triggerScenarios":"Thrown at packages/common/infra/src/framework/core/provider.ts:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the component's provider before resolving it from the container.","Check the identifier spelling and that the correct module is imported.","Ensure the provider is added to the framework before the resolution happens."],"exampleFix":null,"handlingStrategy":"validation","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"}