{"record":{"id":"52e60aa35f024a41","repo":"ueberdosis/tiptap","slug":"there-is-no-node-type-named-nameortype-maybe","errorCode":null,"errorMessage":"There is no node type named '${nameOrType}'. Maybe you forgot to add the extension?","messagePattern":"There is no node type named '(.+?)'\\. Maybe you forgot to add the extension\\?","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/helpers/getNodeType.ts","lineNumber":6,"sourceCode":"import type { NodeType, Schema } from '@tiptap/pm/model'\n\nexport function getNodeType(nameOrType: string | NodeType, schema: Schema): NodeType {\n  if (typeof nameOrType === 'string') {\n    if (!schema.nodes[nameOrType]) {\n      throw Error(\n        `There is no node type named '${nameOrType}'. Maybe you forgot to add the extension?`,\n      )\n    }\n\n    return schema.nodes[nameOrType]\n  }\n\n  return nameOrType\n}\n","sourceCodeStart":1,"sourceCodeEnd":16,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/core/src/helpers/getNodeType.ts#L1-L16","documentation":"Error \"There is no node type named '${nameOrType}'. Maybe you forgot to add the extension?\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/core/src/helpers/getNodeType.ts:6 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":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}