{"record":{"id":"647731e883f8bea6","repo":"ueberdosis/tiptap","slug":"svg-elements-are-not-supported-in-the-jsx-syntax","errorCode":null,"errorMessage":"SVG elements are not supported in the JSX syntax, use the array syntax instead","messagePattern":"SVG elements are not supported in the JSX syntax, use the array syntax instead","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/jsx-runtime.ts","lineNumber":94,"sourceCode":"  if (tag === 'slot') {\n    return 0\n  }\n\n  // If the tag is a function, call it with the props\n  if (tag instanceof Function) {\n    const result = tag(attributes)\n\n    if (Array.isArray(result) && !isJSXElement(result) && !jsxFragments.has(result)) {\n      return createJSXElement(result)\n    }\n\n    return result\n  }\n\n  const { children, ...rest } = attributes ?? {}\n\n  if (tag === 'svg') {\n    throw new Error(\n      'SVG elements are not supported in the JSX syntax, use the array syntax instead',\n    )\n  }\n\n  // Handle children array by spreading elements\n  if (Array.isArray(children)) {\n    if (isJSXElement(children)) {\n      return createJSXElement([tag, rest, children])\n    }\n\n    if (children.length === 0) {\n      // Empty array means no children\n      return createJSXElement([tag, rest])\n    }\n\n    const flattenedChildren = flattenFragmentChildren(children)\n\n    if (flattenedChildren.length === 0) {","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/core/src/jsx-runtime.ts#L76-L112","documentation":"Error \"SVG elements are not supported in the JSX syntax, use the array syntax instead\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/core/src/jsx-runtime.ts:94 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"}