Cocos Creator 3.7.0 - Can not find class 'cc.animation.AnimationController'

Hi all!

I’m using the AnimationController to control my sprites animation and it works perfectly fine inside the engine.

But when I try to build or run a browser preview, I get the following error:

image

Am I missing something?

Hi, can you help to confirm if these settings are checked in the project settings, feature cropping?

I tried to reproduce it using test cases, but it did not reproduce. If there is a checkbox but it still reports an error, please provide your test project code (Note: only the code of the smallest project example that can reproduce the problem, remove the important project elements), so that we can confirm the problem, thank you.

It worked, thank you!

I’ve checked the “Marionette Animation System” and it worked. The “Skeletal Animation” is not required.

For anyone looking for those options, it’s on the Project > Project Settings window, inside the Feature Cropping tab.

Thanks again for your help, @muxiandong !