OK i added
"overrides": { "react": "^19.0.0", "react-dom": "^19.0.0" }
to package.json and seems to be working but not sure if it right soultion