I suspect that you have missed out the include statement from your main.cpp file:
I've just tried that on a working package running on my test rig and can duplicate you compile error by removing the include statement. Without the inclusion of the #include <MUSES72323.h> statement, the compiler won't find or try to use the MUSES72323 library which has been installed into your package by the following statements in platformio.ini:#include <Muses72323.h> // Hardware-specific library
Geofflib_deps =
bodmer/TFT_eSPI@^2.3.70
lvgl/lvgl@^9.2.0
z3t0/IRremote@^4.4.1
maffooclock/ESP32RotaryEncoder@^1.1.0
robtillaart/MCP23S08@^0.4.0
https://github.com/GeoffWebster/Muses72323