If there is people coming here because there is no shadow in the viewport but there is in the rendering,
- check in the option of your main light ( me was the sun as a directional light )
- uncheck "Cast Shadows From Cinematic Object Only
If there is people coming here because there is no shadow in the viewport but there is in the rendering,