Unable to deploy package due to following error
Dependent class is invalid and needs recompilation: Class : Invalid type: OpportunityLineItemSchedule
If one of the related classes got changed specially the methods, properties, arguments or return types then compiler make the dependent class as invalid.
You need to compile all the dependent classes. or otherwise, you can Compile All classes clicking on below link