In this note we discuss the possibility of detecting the accompanying X-ray emission from sources of fast radio bursts with the eROSITA telescope onboard the Spektr-RG observatory. It is shown that during four years of the survey program about 300 bursts are expected to appear in the field of view of eROSITA. About 1% of them will be detected by ground-based radio telescopes. For a total energy release $sim~10^{46}$~ergs depending on the spectral parameters and absorption in the interstellar and intergalactic media, an X-ray flare can be detected from distances from $sim 1$~Mpc (thermal spectrum with $kT=200$~keV and strong absorption) up to $sim1$~Gpc (power-law spectrum with photon index $Gamma=2 $ and realistic absorption). Thus, eROSITA observations might help to provide important constraints on parameters of sources of fast radio bursts, or may even allow to identify the X-ray transient counterparts, which will help to constrain models of fast radio bursts generation.