Recently there was some breaking change in PlatformIO 6.17, so I had to change a few things to make it work with the latest PlatformIO again.
So I wonder what you're trying to do here?
Why trying to compile older code, or using an older PlatformIO version?
How did you download the source? Check the libs are included in the download and if not please use the "Code" button on the main repo page:
https://github.com/letscontrolit/ESPEasy
This allows you to download everything in the repo in a single ZIP file.
And also don't copy files of just any version over an existing folder with a previous download or else you may have some file duplicates when a file was moved or renamed.