There was no dispute in the Catholic Church. The canon was reaffirmed by Trent only because parts of it were disputed by Protestants.
In the same way, the number of Sacraments (seven) was reaffirmed by Trent. The list of seven was not invented by Trent.
This is a VERY common blunder made by anti-Catholic writers who know no history, but ransack reference books. They often do this: misidentifying some re-statement of a dogma as the moment when the dogma was “INVENTED.”
I have been seeing examples of this same blunder, over and over, for decades. Most anti-Catholic screeds have examples of it.
Viewing every opposing viewpoint through the PC lens of “hate” is going to confuse you every time. It’s surprising how many otherwise conservative individuals use it, and here of all places.