I have a bunch of villagers at my house and I was able to trade with them with the new trade mechanics for a long time. I have the role-specific block in front of them so they have professions. I have a blacksmith, cleric, cartographer, and librarian. None of them open the trade menu when I right click on them. I go to some other villagers elsewhere in the world and I can trade with them just fine. This only started happening when I started a raid at my house. I had the new village hero buff thing and I was unable to trade with the villagers. I have since lost the buff but still cannot trade with them. I am able to trade with a wandering villager next to them but not the normal villagers.
I'm no longer seeing this issue after the 1.12 update. I'm playing on a 2 person Realm on the Switch.