Espidf and arduino framework error compiling framework component

I am having trouble compiling my project with espidf and arduino framework

my .ini


platform = platformio/espressif32
framework = espidf, arduino

There seems to be an issue with one of the packages (libsodium).

What am i missing here? Thank you

/Users/myname/.platformio/packages/framework-espidf/components/libsodium/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c:265:31: error: ‘sodium_base64_VARIANT_ORIGINAL_NO_PADDING’ undeclared (first use in this function)
sodium_base64_VARIANT_ORIGINAL_NO_PADDING) == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~