mermaid-js/mermaid · error · Error
EventModeling config not found
Error message
EventModeling config not found
What it means
Error "EventModeling config not found" thrown in mermaid-js/mermaid.
Source
Thrown at packages/mermaid/src/diagrams/eventmodeling/renderer.ts:131
.attr('y', swimlane.y)
.attr('rx', '3')
.attr('width', maxR + diagramProps.swimlanePadding)
.attr('height', swimlane.height)
.attr('fill', oddBackground)
.attr('stroke', backgroundStroke);
g.append('text')
.attr('font-weight', diagramProps.swimlaneTextFontWeight)
.attr('x', 30)
.attr('y', swimlane.y + 30)
.text(swimlane.label);
};
}
export const draw: DrawDefinition = function (txt, id, ver, diagObj) {
log.debug('in eventmodeling renderer', txt + '\n', 'id:', id, ver);
if (!DEFAULT_EVENTMODELING_CONFIG) {
throw new Error('EventModeling config not found');
}
const db = diagObj.db as EventModelingDB;
const { themeVariables, eventmodeling: config } = getConfig();
const diagram: Selection<BaseType, unknown, HTMLElement, any> = select(`[id="${id}"]`);
const diagramProps = db.getDiagramProps();
const state = db.getState();
const arrowheadId = `em-arrowhead-${id}`;
const arrowheadColor = themeVariables.emArrowhead ?? '#000000';
state.sortedSwimlanesArray.forEach(
renderD3Swimlane(diagram, state.maxR, diagramProps, themeVariables)
);
state.boxes.forEach(renderD3Box(diagram, diagramProps));
state.relations.forEach(renderD3Relation(diagram, diagramProps, arrowheadId, themeVariables));
View on GitHub (pinned to d93e9c88c0)
When it happens
Trigger: Thrown at packages/mermaid/src/diagrams/eventmodeling/renderer.ts:131 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of mermaid-js/mermaid@d93e9c88c0 (2026-08-12).
Data as JSON: /api/errors/02062be49d480b28.
Report an issue: GitHub.