This is a bug in Unity, fixed in 2019.3.
Conditionally-compiled scripts are not properly recognized in some circumstances, including prefabs.
Cinemachine has a workaround for it that will become available with the next CM release 2.4.0, so you will be able to continue to use Unity 2019.2.