The version that supports React 19 is still on alpha I used framer-motion: 12.0.0-alpha.1 to solve the problem. Taken from this issue https://github.com/framer/motion/issues/2843
framer-motion: 12.0.0-alpha.1