If you take "for years" to literally mean "more than one year", sure. I think it's colloquially understood to be far longer than that. "Encanto" came out in 2021 and I'd consider that a hit. The soundtrack saw wide play, everyone I know who's seen it loves it, and they're merchandising the hell out of it.
To be fair, I saw "Wish" with my family and we all enjoyed it, but it obviously didn't come close to "Frozen 2" numbers. They're not all hits. With animated film taking years to produce, those perhaps aren't the metric to use. It'll be another few years before the next major animated film by Disney is released.
The Marvel movies release more frequently and seem to print money. "Guardians of the Galaxy: Volume 3" came out last year and has done $845MM¹.
¹ -- https://www.boxofficemojo.com/release/rl2977202945/