Skip to content

@blocknote/server-util bundles React DOM version check, causing compatibility issues with different React versions #1966

@jgeurts

Description

@jgeurts

Describe the bug
The built code for @blocknote/server-util/dist/blocknote-server-util.js includes code used to verify the version of react and react-dom. We're seeing this when using latest Next.js and using BlockNote with backend APIs and/or react server components. We are trying to upgrade to react and react-dom 19.1.1. If the versions of react and react-dom referenced in our project are not 19.1.0, the code will throw an error like the following.

Error: Failed to load external module @blocknote/server-util: Error: Minified React error #527; visit https://react.dev/errors/527?args[]=19.1.1&args[]=19.1.0 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Setting npm overrides doesn't help as the check is embedded in the blocknote-server-util.js code. If possible to update the build process so that those checks are not included, that would be great.

Misc

  • Node version: 24
  • Package manager: npm
  • Browser: n/a
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions