Both @redocly/cli and @asyncapi/cli pull in react and react-dom, and due to how npm resolved dependencies, sometimes this creates a lockfile conflict.
Presently the work-around is to override directly depend on these packages in package.json, forcing them to be consistent.
A future possible resolution might be to switch to using pnpm over npm, as its dependency resolution avoids this issue entirely.