A shaving unit for an electric shaver, comprising: one or more hair-cutting units; a lighting module comprising a lighting module housing accommodating one or more lighting elements; and a supporting member supporting the one or more hair-cutting units and the lighting module; wherein the lighting module housing has a cavity, wherein the lighting elements are arranged in the cavity, and wherein the cavity is covered on a skin-facing side of the lighting module housing by an upper wall of the lighting module housing; wherein the upper wall of the lighting module housing is made from an optically transmissive material and comprises a skin-facing light output surface via which light generated by the lighting elements is exposed to skin during operation of the shaving unit, said light output surface being arranged for contacting the skin during operation of the shaving unit; wherein the lighting module comprises a PCB arranged in the cavity, and wherein the lighting elements are mounted to a first main surface of the PCB facing the upper wall of the lighting module housing such that the lighting elements are in optical communication with the light output surface during operation of the shaving unit; wherein the cavity contains an optically transmissive potting material which covers the first main surface of the PCB thereby encapsulating the lighting elements, and extends between the first main surface of the PCB and the upper wall of the lighting module housing, and wherein the potting material further covers a second main surface of the PCB opposite to the first main surface such that the potting material encapsulates the PCB on all main sides. one or more hair-cutting units; a lighting module comprising a lighting module housing accommodating one or more lighting elements; and a supporting member supporting the one or more hair-cutting units and the lighting module; wherein the lighting module housing has a cavity, wherein the lighting elements are arranged in the cavity, and wherein the cavity is covered on a skin-facing side of the lighting module housing by an upper wall of the lighting module housing; wherein the upper wall of the lighting module housing is made from an optically transmissive material and comprises a skin-facing light output surface via which light generated by the lighting elements is exposed to skin during operation of the shaving unit, said light output surface being arranged for contacting the skin during operation of the shaving unit; wherein the lighting module comprises a PCB arranged in the cavity, and wherein the lighting elements are mounted to a first main surface of the PCB facing the upper wall of the lighting module housing such that the lighting elements are in optical communication with the light output surface during operation of the shaving unit; wherein the cavity contains an optically transmissive potting material which covers the first main surface of the PCB thereby encapsulating the lighting elements, and extends between the first main surface of the PCB and the upper wall of the lighting module housing, and wherein the potting material further covers a second main surface of the PCB opposite to the first main surface such that the potting material encapsulates the PCB on all main sides.