{"record":{"id":"0bbde4ca0c34b841","repo":"ueberdosis/tiptap","slug":"tiptap-an-editor-instance-is-required-pass-a-non","errorCode":null,"errorMessage":"Tiptap: An editor instance is required. Pass a non-null `editor` prop.","messagePattern":"Tiptap: An editor instance is required\\. Pass a non-null `editor` prop\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react/src/Tiptap.tsx","lineNumber":149,"sourceCode":" * import { Tiptap, useEditor } from '@tiptap/react'\n *\n * function App() {\n *   const editor = useEditor({ extensions: [...] })\n *\n *   return (\n *     <Tiptap editor={editor}>\n *       <Toolbar />\n *       <Tiptap.Content />\n *     </Tiptap>\n *   )\n * }\n * ```\n */\nexport function TiptapWrapper({ children, ...props }: TiptapWrapperProps) {\n  const resolvedEditor = 'editor' in props ? props.editor : props.instance\n\n  if (!resolvedEditor) {\n    throw new Error('Tiptap: An editor instance is required. Pass a non-null `editor` prop.')\n  }\n\n  const tiptapContextValue = useMemo<TiptapContextType>(\n    () => ({ editor: resolvedEditor }),\n    [resolvedEditor],\n  )\n\n  // Provide backwards compatibility with the legacy EditorContext\n  // so components using useCurrentEditor() work inside <Tiptap>\n  const legacyContextValue = useMemo(() => ({ editor: resolvedEditor }), [resolvedEditor])\n\n  return (\n    <EditorContext.Provider value={legacyContextValue}>\n      <TiptapContext.Provider value={tiptapContextValue}>{children}</TiptapContext.Provider>\n    </EditorContext.Provider>\n  )\n}\n","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/react/src/Tiptap.tsx#L131-L167","documentation":"Error \"Tiptap: An editor instance is required. Pass a non-null `editor` prop.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/react/src/Tiptap.tsx:149 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"}