Guiding light is an essential task in optics, from optical fibres to compact nanoscale systems. Here, a few-atoms-thin MoTe2 layer embedded into a planar waveguide emits photons into waveguide modes that propagate coherently, paving the way for waveguide quantum electrodynamics with van der Waals materials.