Oracle Message ORA-02342 - replacement type has compilation errors

ERRORreplacement type has compilation errors
CAUSEThe use of the ALTER...REPLACE statement on a valid type caused a compilation error.
ACTIONUse the ALTER...REPLACE statement to replace the type with a valid type which does not cause compilation errors.