{
  "id": "react/missing-export-default-component",
  "signature": "Attempted import error: 'ComponentName' is not exported from './module'",
  "signature_zh": "尝试导入错误：'ComponentName' 未从 './module' 中导出",
  "regex": "Attempted import error: '([A-Za-z0-9_$]+)' is not exported from '([^']+)'",
  "domain": "react",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Component or function referenced in import statement is either not exported, exported as default but imported as named, or the file path is incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "导入语句中引用的组件或函数要么未导出，要么以默认方式导出但作为命名导入，或者文件路径错误。",
  "versions": [
    {
      "version": "webpack 5.88.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "create-react-app 5.0.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "vite 4.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The error is static; restarting doesn't change the module's export statements.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the import uses named syntax, adding default export doesn't fix it; may cause export ambiguity.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the export statement in the module file. If it uses 'export default ComponentName', use default import: 'import ComponentName from \"./module\"'. If it uses 'export { ComponentName }', use named import: 'import { ComponentName } from \"./module\"'.",
      "success_rate": 0.95,
      "how": "Check the export statement in the module file. If it uses 'export default ComponentName', use default import: 'import ComponentName from \"./module\"'. If it uses 'export { ComponentName }', use named import: 'import { ComponentName } from \"./module\"'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Verify the file path relative to the importing file. Use './' for same directory, '../' for parent. Ensure file extension is omitted or correct (webpack handles .js/.jsx/.ts/.tsx).",
      "success_rate": 0.9,
      "how": "Verify the file path relative to the importing file. Use './' for same directory, '../' for parent. Ensure file extension is omitted or correct (webpack handles .js/.jsx/.ts/.tsx).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Check the export statement in the module file. If it uses 'export default ComponentName', use default import: 'import ComponentName from \"./module\"'. If it uses 'export { ComponentName }', use named import: 'import { ComponentName } from \"./module\"'.",
    "Verify the file path relative to the importing file. Use './' for same directory, '../' for parent. Ensure file extension is omitted or correct (webpack handles .js/.jsx/.ts/.tsx)."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://webpack.js.org/guides/tree-shaking/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-04-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}