In my situation:
Im using import { useSpring, animated } from '@react-spring/web';
instead of
import { useSpring, animated } from 'react-spring/web';
I installed only "@react-spring/web": "^9.7.5",
I dont need to install the @types, I dont need to install the full react-spring.
Im using pnpm.