In this work we report on the cosmological 7Li problem, from a nuclear structure point of view, that is by including resonances in the calculation of the reactions which populate beryllium. It is found that the primordial abundance of lithium is reduced, as a consequence of the presence of resonant channels in the relevant cross sections. We establish constraints on the resonant energies, and make a comparison with the available observational data.