Can't preview animations/gif in preview mode?

Whenever I add a lottiefile gif to my project I can’t preview the animation. Its just a picture. It’s been like this for awhile anybody know how to fix this?