This code is no longer supported by ESP-IDF ver 4.xx as Espressif have moved to a CMAKE structure. Is it possible you could update the build?