{"record":{"id":"0f1f26f58f5bd790","repo":"ueberdosis/tiptap","slug":"there-is-no-mark-type-named-nameortype-maybe","errorCode":null,"errorMessage":"There is no mark type named '${nameOrType}'. Maybe you forgot to add the extension?","messagePattern":"There is no mark type named '(.+?)'\\. Maybe you forgot to add the extension\\?","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/helpers/getMarkType.ts","lineNumber":6,"sourceCode":"import type { MarkType, Schema } from '@tiptap/pm/model'\n\nexport function getMarkType(nameOrType: string | MarkType, schema: Schema): MarkType {\n  if (typeof nameOrType === 'string') {\n    if (!schema.marks[nameOrType]) {\n      throw Error(\n        `There is no mark type named '${nameOrType}'. Maybe you forgot to add the extension?`,\n      )\n    }\n\n    return schema.marks[nameOrType]\n  }\n\n  return nameOrType\n}\n","sourceCodeStart":1,"sourceCodeEnd":16,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/core/src/helpers/getMarkType.ts#L1-L16","documentation":"Error \"There is no mark type named '${nameOrType}'. Maybe you forgot to add the extension?\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/core/src/helpers/getMarkType.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"}