I made a world and turned doMobSpawning off, butt the Wandering Trader still appears.
HOW TO REPRODUCE
Make a world and run the command "/gamerule doMobSpawning false".
Just wait for it, and eventually, the Wandering Trader should spawn somewhere.
[media]
Related issues
duplicates
Attachments
Comments

Thank you for your report!
We're actually already tracking this issue at MC-143420, so we will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.