Module '"cc"' has no exported member 'AnimationController', 3.8.5

I’m trying to use the Animation Graph to create nice state machine for 3D animations, but when I’m going to my script and trying to create a property of AnimationController class, it says

Module ‘“cc”’ has no exported member ‘AnimationController’

Is it a bug, or I should import it from another module, not ‘cc’?

animation.AnimationController.


Please use animation.AnimationController have a try.