I am sorry if this is a repeated question, I could not find anything similar on the forum search.
How to adjust the space before the chapter heading without using
I tried this code but no luck:
It says that
\chapterheadstartvskip is not defined.