Solved...
I was using Legacy IDE 1.18.13
I installed IDE 2.0.3 and then re-added the ESP32 boards using boards manager and https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Selected the ESP32 WROOM DA board as my ESP 32 board is an ESP WROOM 32 board
Compiled and worked under this IDE.
Hmmm.... odd but I'll take it as a win.