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