Pro Micro ATmega32U4 USB_VID was not declared in this scope

ProMicro board

platform = atmelavr
board = 32u416m
framework = arduino

In file included from C:\Users\amikam\.platformio\packages\framework-arduino-avr\cores\arduino\USBAPI.h:44:0,
                 from C:\Users\amikam\.platformio\packages\framework-arduino-avr\cores\arduino\USBCore.cpp:20:
C:\Users\xxx\.platformio\packages\framework-arduino-avr\cores\arduino\USBCore.cpp:73:29: error: 'USB_VID' was not declared in this scope

This works in arduino IDE w/o a problem. Any suggestions please? thanks

Interesting breakage for 32u416m, this should be reported to Issues · platformio/platform-atmelavr · GitHub.

However, the link is telling you to just use a 5V/16MHz Pro Micro definition. So, you can just use board = micro in the platformio.ini.

I got it to work by adding:
board_build.usb_product = “32u416m”