I have made multiple farms in a sever with my friends in java edition. I have tried breeding villagers around 3 times now, and I still haven't had any success. I have replaced all of my villagers at least three times now, and still nothing. At first I thought it was my design, so I got new villagers and rebuilt the entire thing following every tutorial I could find. I made sure there were 20 beds, enough work stations, plenty of bread, and a bell, but I would only get red harts for about a minute before I would get yellow broken hearts above their heads. I then thought maybe it was my biome(a mushroom island biome) so I moved everything into an ocean biome and got new villagers. Again, the same thing happened. So then I watched more tutorials for this version, and built a new design and got new villagers from a completely different village, but still they keep having red hearts and then getting yellow broken hearts. I have made sure that all of the villagers are able to take a job, and I have also made sure that there is adequate beds, workstations, and food for the villagers to breed, but it doesn't matter how many thousands of blocks I travel for new villagers, I get the same results in my breeders. Any way I can fix this quickly so that I can continue on my projects? (I did another 4 hours of testing and discovered the problem. I had a glass block in front of the beds to keep villagers from reaching them, however, I didn't realize that villagers cannot see through glass, however, putting a trap door there made the villagers acknowledge that there were beds there, and they instantly made baby villagers, sorry to bug you guys with this, but I guess this isn't an issue anymore, though making it so villagers could see through glass would be very helpful.) Sorry again, I hope this helps anyone else who is struggling to make villagers work.
I am unable to reproduce this issue in 21w20a. Villagers seemed to breed normally and no issue was apparent.