Library version 2.0.0 requires the Arduino ESP32 Core version 3.0.0 or higher for a successful build.
The lib has seen a major redesign and now uses the new driver APIs driver/dac_oneshot.h and driver/dac_cosine.h instead of the deprecated driver/dac.h.