ueberdosis/tiptap · error · Error
Tiptap: An editor instance is required. Pass a non-null `edi
Error message
Tiptap: An editor instance is required. Pass a non-null `editor` prop.
What it means
Error "Tiptap: An editor instance is required. Pass a non-null `editor` prop." thrown in ueberdosis/tiptap.
Source
Thrown at packages/react/src/Tiptap.tsx:149
* import { Tiptap, useEditor } from '@tiptap/react'
*
* function App() {
* const editor = useEditor({ extensions: [...] })
*
* return (
* <Tiptap editor={editor}>
* <Toolbar />
* <Tiptap.Content />
* </Tiptap>
* )
* }
* ```
*/
export function TiptapWrapper({ children, ...props }: TiptapWrapperProps) {
const resolvedEditor = 'editor' in props ? props.editor : props.instance
if (!resolvedEditor) {
throw new Error('Tiptap: An editor instance is required. Pass a non-null `editor` prop.')
}
const tiptapContextValue = useMemo<TiptapContextType>(
() => ({ editor: resolvedEditor }),
[resolvedEditor],
)
// Provide backwards compatibility with the legacy EditorContext
// so components using useCurrentEditor() work inside <Tiptap>
const legacyContextValue = useMemo(() => ({ editor: resolvedEditor }), [resolvedEditor])
return (
<EditorContext.Provider value={legacyContextValue}>
<TiptapContext.Provider value={tiptapContextValue}>{children}</TiptapContext.Provider>
</EditorContext.Provider>
)
}
View on GitHub (pinned to 496d53afd7)
When it happens
Trigger: Thrown at packages/react/src/Tiptap.tsx:149 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ueberdosis/tiptap@496d53afd7 (2026-08-26).
Data as JSON: /api/errors/0bbde4ca0c34b841.
Report an issue: GitHub.