v0 with animejs v4 is a nightmare

Hi all,

Ive been trying to create a corporate single page website with anime.js v4. But it constantly goes into a loop with the error:

“The “animejs” module does not provide an export named “default””

Im lost in what i should tell v0 to do to make it work so for now ive told it to remove v0.

Any other people have had bad luck with anime.js?

Ive prompted it to 2 seperate chats and told it to use v4 and look at the documentation first but still to no result.

Thanks in advance

Welcome, @zemenno!

animejs v4 changed from CommonJS to ES modules, and the export pattern changed. v0 might be using outdated import patterns for this library.

Could you try prompting v0 with:

"Use animejs version 3.2.2 instead of version 4"

Let us know how you get on!

This worked a whole lot better! Thank you!

Would be great to use all the new features of animejs 4. But i will have to wait for that one haha!

Thanks!

I’m glad it works for you!