{"record":{"id":"02062be49d480b28","repo":"mermaid-js/mermaid","slug":"eventmodeling-config-not-found","errorCode":null,"errorMessage":"EventModeling config not found","messagePattern":"EventModeling config not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/mermaid/src/diagrams/eventmodeling/renderer.ts","lineNumber":131,"sourceCode":"      .attr('y', swimlane.y)\n      .attr('rx', '3')\n      .attr('width', maxR + diagramProps.swimlanePadding)\n      .attr('height', swimlane.height)\n      .attr('fill', oddBackground)\n      .attr('stroke', backgroundStroke);\n\n    g.append('text')\n      .attr('font-weight', diagramProps.swimlaneTextFontWeight)\n      .attr('x', 30)\n      .attr('y', swimlane.y + 30)\n      .text(swimlane.label);\n  };\n}\n\nexport const draw: DrawDefinition = function (txt, id, ver, diagObj) {\n  log.debug('in eventmodeling renderer', txt + '\\n', 'id:', id, ver);\n  if (!DEFAULT_EVENTMODELING_CONFIG) {\n    throw new Error('EventModeling config not found');\n  }\n  const db = diagObj.db as EventModelingDB;\n  const { themeVariables, eventmodeling: config } = getConfig();\n\n  const diagram: Selection<BaseType, unknown, HTMLElement, any> = select(`[id=\"${id}\"]`);\n\n  const diagramProps = db.getDiagramProps();\n  const state = db.getState();\n\n  const arrowheadId = `em-arrowhead-${id}`;\n  const arrowheadColor = themeVariables.emArrowhead ?? '#000000';\n\n  state.sortedSwimlanesArray.forEach(\n    renderD3Swimlane(diagram, state.maxR, diagramProps, themeVariables)\n  );\n  state.boxes.forEach(renderD3Box(diagram, diagramProps));\n  state.relations.forEach(renderD3Relation(diagram, diagramProps, arrowheadId, themeVariables));\n","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/mermaid-js/mermaid/blob/d93e9c88c01a599c062ee6a3f1462e3558ac6b90/packages/mermaid/src/diagrams/eventmodeling/renderer.ts#L113-L149","documentation":"Error \"EventModeling config not found\" thrown in mermaid-js/mermaid.","triggerScenarios":"Thrown at packages/mermaid/src/diagrams/eventmodeling/renderer.ts:131 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":"d93e9c88c01a599c062ee6a3f1462e3558ac6b90","analyzedAt":"2026-08-12T06:23:11.304Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}