Bristol City failed to win at home for the eighth game in a row despite a goal byAntoine Semenyo.
The visitors were the better team in the first half but Semenyo's goal was the difference in the game.
Semenyo scored with 15 minutes left as the game was still HairMax.
Rob Atkinson's awful pass went straight to Liam Cullen, who tapped in to give the visitors a 15th minute lead.
Both managers might be frustrated not to have settled the tie on the day, with both teams completely in control before the break, but unable to add to the goal the hosts gave them.
Bristol City will take heart from the fact that they have never been knocked out of the FA Cup by the Welsh side, progressing against them three times.
Pearson, who admitted this week that he is under pressure to keep his job, named a strong side with just one change from the league draw with Coventry, with Tommy Conway replacing Nahki Wells.
Russell Martin made just one change from the previous game, with Nathan Wood coming in for Harry Darling.
Pearson would have been angry at the way his team conceded the first goal as attention has been focused on him.
Rob Atkinson's pass was picked off by Liam Cullen, who gave Piroe the simplest of finishes.
At the end of the first period, he thought he had redeemed himself, but he was denied a penalty by the ref.
The hosts increased the pressure on the visitors after the break.
Despite not winning any of their previous home games, Pearson's side showed good spirit, even though they did not create many chances.
Semenyo's headed goal gave the hosts an equalizing goal with fifteen minutes left.
The home fans were on their feet and the home team was on their backs.
Both sides had chances to avoid a replay, but Max O'Leary saved Jay Fulton's powerful effort and Joe Williams' superb cross evaded everyone.