Skip to content

TypeError: Cannot read properties of null (reading 'useId') with React 19 #368

Description

@crodic

Bug Report

Environment

Package Version
reactjs-tiptap-editor 1.0.26
react 19.2.0
react-dom 19.2.0
@tiptap/react 3.27.1
@tiptap/core 3.27.1
Vite 7.1.9
Package Manager pnpm (Turborepo monorepo)

Description

Rendering any component from reactjs-tiptap-editor (such as RichTextProvider or any toolbar component) inside a React 19 application causes the app to crash immediately with the following runtime error:

TypeError: Cannot read properties of null (reading 'useId')

at exports.useId (chunk-5FXY5V76.js:929:35)
at W (reactjs-tiptap-editor.js:276:37)

The error occurs before the editor is rendered.


Steps to Reproduce

  1. Create a React 19 project using Vite.
  2. Install reactjs-tiptap-editor@1.0.26.
  3. Render RichTextProvider (or any toolbar component).
  4. Start the application.

Actual Behavior

The application crashes with:

TypeError: Cannot read properties of null (reading 'useId')

Expected Behavior

The editor should render normally without crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions