Pro Micro ATmega32U4 USB_VID was not declared in this scope

ProMicro board https://osoyoo.com/2018/06/25/osoyoo-pro-micro-board/

setup:
[env:32u416m]
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
  D_DEVICE(0xEF,0x02,0x01,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,ISERIAL,1);

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”