{"record":{"id":"5602821bec2e1048","repo":"mermaid-js/mermaid","slug":"no-such-shape-doc-shape-shape-names-should-be","errorCode":null,"errorMessage":"No such shape: ${doc.shape}. Shape names should be lowercase.","messagePattern":"No such shape: (.+?)\\. Shape names should be lowercase\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/mermaid/src/diagrams/flowchart/flowDb.ts","lineNumber":238,"sourceCode":"    }\n    if (classes !== undefined && classes !== null) {\n      classes.forEach((s) => {\n        vertex.classes.push(s);\n      });\n    }\n    if (dir !== undefined) {\n      vertex.dir = dir;\n    }\n    if (vertex.props === undefined) {\n      vertex.props = props;\n    } else if (props !== undefined) {\n      Object.assign(vertex.props, props);\n    }\n\n    if (doc !== undefined) {\n      if (doc.shape) {\n        if (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes('_')) {\n          throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);\n        } else if (!isValidShape(doc.shape)) {\n          throw new Error(`No such shape: ${doc.shape}.`);\n        }\n        vertex.type = doc?.shape;\n      }\n\n      if (doc?.label) {\n        vertex.text = doc?.label;\n        vertex.labelType = this.sanitizeNodeLabelType(doc?.labelType);\n      }\n      if (doc?.icon) {\n        vertex.icon = doc?.icon;\n        if (!doc.label?.trim() && vertex.text === id) {\n          vertex.text = '';\n        }\n      }\n      if (doc?.form) {\n        vertex.form = doc?.form;","sourceCodeStart":220,"sourceCodeEnd":256,"githubUrl":"https://github.com/mermaid-js/mermaid/blob/d93e9c88c01a599c062ee6a3f1462e3558ac6b90/packages/mermaid/src/diagrams/flowchart/flowDb.ts#L220-L256","documentation":"Error \"No such shape: ${doc.shape}. Shape names should be lowercase.\" thrown in mermaid-js/mermaid.","triggerScenarios":"Thrown at packages/mermaid/src/diagrams/flowchart/flowDb.ts:238 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"}