Context. The coagulation of microscopic dust into planetesimals is the first step towards the formation of planets. The composition, size, and shape of the growing aggregates determine the efficiency of this early growth. In particular, it has been proposed that fluffy ice aggregates can grow very efficiently in protoplanetary disks, suffering less from the bouncing and radial drift barriers. Aims. While the collision velocity between icy aggregates of similar size is thought to stay below the fragmentation threshold, they may nonetheless lose mass from collisions with much smaller projectiles. As a result, erosive collisions have the potential to terminate the growth of pre-planetesimal bodies. We investigate the effect of these erosive collisions on the ability of porous ice aggregates to cross the radial drift barrier. Methods. We develop a Monte Carlo code that calculates the evolution of the masses and porosities of growing aggregates, while resolving the entire mass distribution at all times. The aggregate's porosity is treated independently of its mass, and is determined by collisional compaction, gas compaction, and eventually self-gravity compaction. We include erosive collisions and study the effect of the erosion threshold velocity on aggregate growth. Results. For erosion threshold velocities of 20−40 m s −1 , high-velocity collisions with small projectiles prevent the largest aggregates from growing when they start to drift. In these cases, our local simulations result in a steady-state distribution, with most of the dust mass in particles with Stokes numbers close to unity. Only for the highest erosion threshold considered (60 m s −1 ) do porous aggregates manage to cross the radial drift barrier in the inner 10 AU of MMSN-like disks. Conclusions. Erosive collisions are more effective in limiting the growth than fragmentary collisions between similar-size particles. Conceivably, erosion limits the growth before the radial drift barrier, although the robustness of this statement depends on uncertain material properties of icy aggregates. If erosion inhibits planetesimal formation through direct sticking, the sea of ∼10 9 g, highly porous particles appears suitable for triggering streaming instability.