Oracle Message ORA-02307 - cannot alter with REPLACE option a type that is not valid

ERRORcannot alter with REPLACE option a type that is not valid
CAUSEAn attempt was made to ALTER with REPLACE option a type that is not valid.
ACTIONUse the CREATE OR REPLACE TYPE command to modify the type.