If you’re using Platformio, just change the line in platformio.ini from “platform = asrmicro650x” to “platform = heltec-cubecell”.
The asrmicro650x platform contains the error which is now deprecated.
This needs to be done manually because Platformio automatically selects asrmicro650x when setting up a new project with this board.