Closed InfamousStarFox closed 2 years ago
It’s likely you’re using create-react-app which isn’t compatible with ES modules yet (see: https://github.com/framer/motion/issues/1307)
if you use the latest version of popmotion@9.x it should work as expected
Yep, it looks like the problem is because create-react-app doesn't support the .mjs
extension
Downgrading to 9.x fixed it.
Using Popmotion version 10.0.2
The basic quick start:
Causes my React site to fail to compile with the error:
What is the correct import for this to work?