Thank you, worked for me also
Same error, went to ESPHome Builder.
Clicked Clean All and then Update All.
This fixed it for me.
Thank you! I have been tearing my hair out with this.
Uninstalling the Add-On and Reinstalling seems to have resolved the issue for me too!