Hi ,
Have you updated to 4.8.0 or are you on a preview build? I’ve attempted this on my end following along with the video however when I rename either functions or variables after creating and deleting a custom event it seems to work as intended. I’ve also tried compiling between steps to see if that caused the error, however it did not seem to make a difference.