ueberdosis/tiptap · error
[tiptap error]: Extension "${name}" uses the "changedRanges"
Error message
[tiptap error]: Extension "${name}" uses the "changedRanges" decoration update strategy but does not provide createInRange(). What it means
Error "[tiptap error]: Extension "${name}" uses the "changedRanges" decoration update strategy but does not provide createInRange()." thrown in ueberdosis/tiptap.
Source
Thrown at packages/core/src/decorations/helpers/validateDecorationSpec.ts:22
* Validates a decoration spec to ensure it follows the correct pattern for its update strategy.
* @param name The name of the extension.
* @param spec The decoration spec to validate
*/
export function validateDecorationSpec(name: string, spec: DecorationSpec): void {
const strategy = (spec as DecorationSpec & { update?: unknown }).update ?? 'document'
switch (strategy) {
case 'document':
if (spec.createInRange) {
throw new Error(
`[tiptap error]: Extension "${name}" provides createInRange() but does not use the ` +
'"changedRanges" decoration update strategy.',
)
}
return
case 'changedRanges':
if (!spec.createInRange) {
throw new Error(
`[tiptap error]: Extension "${name}" uses the "changedRanges" decoration update ` +
'strategy but does not provide createInRange().',
)
}
return
case 'manual':
if (spec.createInRange) {
throw new Error(
`[tiptap error]: Extension "${name}" uses the "manual" decoration update strategy, ` +
'which is not compatible with createInRange(). createInRange() requires the ' +
'"changedRanges" strategy.',
)
}
if (spec.shouldUpdate) {
throw new Error(
`[tiptap error]: Extension "${name}" cannot combine the "manual" decoration update ` +
'strategy with shouldUpdate().',
)View on GitHub (pinned to 496d53afd7)
When it happens
Trigger: Thrown at packages/core/src/decorations/helpers/validateDecorationSpec.ts:22 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/fdf71b9471c73b09.
Report an issue: GitHub.