Error when i install framer-motion package

Hello,
I’m new in frontity so i hope my question is not dumb :grinning_face_with_smiling_eyes:
I have a problem when i install framerMotion package. When i try to open the project my terminal i get many errors like these :

Can’t import the named export ‘useState’ from non EcmaScript module (only default export is available)
Can’t import the named export ‘useRef’ from non EcmaScript module (only default export is available)

I don’t know how to fix this…

If someone can help me I will be really greatful. Thks !

I put an oldest version (4.1.17) of the package and now it works !