This is because you are using version 3 of Chakra-ui, but the video used version 2.10.3.
To resolve this, run the following commands:
*npm i @chakra-ui/[email protected] @emotion/react @emotion/styled framer-motion
npm i @chakra-ui/[email protected]*