Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
830 stars 79 forks source link

Property 'onViewportBoxUpdate' is missing in type '{ children: Element[]; }' but required in type 'Pick '. #52

Closed parikkap closed 2 years ago

parikkap commented 2 years ago

Getting this error from Sheet.Container, Sheet.Header, Sheet.Content andSheet.Backdrop. To my understanding the expected type comes from framer-motion library. Could you have a look into it?

DiogoCoelhoo commented 2 years ago

That error can be resolved with this https://exerror.com/cant-import-the-named-export-children-from-non-ecmascript-module-only-default-export-is-available/ Something happened in the framer-motion 5.x.x versionthat change the way that imports work.

kaueburiti commented 2 years ago

Do we have plans to update the library to be able to handle the last framer-motion version?