I found an error
The cut out part reads:
<<if $chapter3.includes("Hangover")>>[[Chapter Three|Ch3HangoverPt1]]<<elseif $chapter2.includes("LySleep")>>[[Chapter Three|Ch3LyRoomWake][$chapter3.push("LyWake")]]<<else>>[[Chapter Three|Ch3RoomWake]]<</if>>