{"record":{"id":"dd885bad2caccf79","repo":"facebook/react","slug":"102","errorCode":"102","errorMessage":"EventPluginRegistry: Cannot inject two different event plugins using the same name, `${pluginName}`.","messagePattern":"EventPluginRegistry: Cannot inject two different event plugins using the same name, `(.+?)`\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-native-renderer/src/legacy-events/EventPluginRegistry.js","lineNumber":252,"sourceCode":" *\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n * @internal\n */\nexport function injectEventPluginsByName(\n  injectedNamesToPlugins: NamesToPlugins,\n): void {\n  let isOrderingDirty = false;\n  for (const pluginName in injectedNamesToPlugins) {\n    if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n      continue;\n    }\n    const pluginModule = injectedNamesToPlugins[pluginName];\n    if (\n      !namesToPlugins.hasOwnProperty(pluginName) ||\n      namesToPlugins[pluginName] !== pluginModule\n    ) {\n      if (namesToPlugins[pluginName]) {\n        throw new Error(\n          'EventPluginRegistry: Cannot inject two different event plugins ' +\n            `using the same name, \\`${pluginName}\\`.`,\n        );\n      }\n\n      namesToPlugins[pluginName] = pluginModule;\n      isOrderingDirty = true;\n    }\n  }\n  if (isOrderingDirty) {\n    recomputePluginOrdering();\n  }\n}\n","sourceCodeStart":234,"sourceCodeEnd":266,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-native-renderer/src/legacy-events/EventPluginRegistry.js#L234-L266","documentation":"Error \"EventPluginRegistry: Cannot inject two different event plugins using the same name, `${pluginName}`.\" thrown in facebook/react.","triggerScenarios":"Thrown at packages/react-native-renderer/src/legacy-events/EventPluginRegistry.js:252 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}