Can't bake directional light on terrain

Build in pipeline. “Legacy Light Probes are enabled in the Project’s Render Pipeline. These are not supported by Terrain, therefore the Scene’s Ambient Probe will be used instead.” HOW TO FIX IT. UNITY 6 SAME PROBLEM. CAN’T BAKE TERRAIN LIGHTMAP