ueberdosis/tiptap · error · Error
useTiptap must be used within a <Tiptap> provider
Error message
useTiptap must be used within a <Tiptap> provider
What it means
Error "useTiptap must be used within a <Tiptap> provider" thrown in ueberdosis/tiptap.
Source
Thrown at packages/react/src/Tiptap.tsx:27
* The shape of the React context used by the `<Tiptap />` components.
*
* The editor instance is always available when using the default `useEditor`
* configuration. For SSR scenarios where `immediatelyRender: false` is used,
* consider using the legacy `EditorProvider` pattern instead.
*/
export type TiptapContextType = {
/** The Tiptap editor instance. */
editor: Editor
}
/**
* React context that stores the current editor instance.
*
* Use `useTiptap()` to read from this context in child components.
*/
export const TiptapContext = createContext<TiptapContextType>({
get editor(): Editor {
throw new Error('useTiptap must be used within a <Tiptap> provider')
},
})
TiptapContext.displayName = 'TiptapContext'
/**
* Hook to read the Tiptap context and access the editor instance.
*
* This is a small convenience wrapper around `useContext(TiptapContext)`.
* The editor is always available when used within a `<Tiptap>` provider.
*
* @returns The current `TiptapContextType` value from the provider.
*
* @example
* ```tsx
* import { useTiptap } from '@tiptap/react'
*
* function Toolbar() {View on GitHub (pinned to 496d53afd7)
When it happens
Trigger: Thrown at packages/react/src/Tiptap.tsx:27 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/da2af1208a37a939.
Report an issue: GitHub.