To have better performance, I turned off the visibility of many modifiers and object in the viewport. They are only available in render.
Do I have to turn on visibility of everything in viewport before baking indirect lighting?
The only thing I found in the document:
“The visibility and collections used during the baking process are the ones in the current Active View Layer.”
Indirect Lighting — Blender Manual