How can I get masks to work in Lottie?

I can’t resolve the issues with masks in After Effects.

Everything is playing as it should in After Effects, but when I preview or export the Lottie, the masks aren’t there.

I can’t figure it out. Any advice would be much appreciated.

Are you using shape/vector layers or pixel layers?
If pixel layers is what your comp is you have to export the image sequence and import it into a fresh comp, then export with the include assets options on inside the configuration menu.
Try with export guides on as well.
I hope it works