From his description, the cause is that some of your engine js or json files have been damaged and need to be replaced with intact versions.
Without knowing which file has been damaged, his way (copying the entire game parts into a new project) is the easiest way to repair your project.
Without knowing which file has been damaged, his way (copying the entire game parts into a new project) is the easiest way to repair your project.