I am using SP-PNP-js to get the properties of the user.
I wrote a for-each that get all properties and I am interested in one of them: SPS-MUILanguages.
When I try to get the value of that property I get this error in VS Code:
Type 'number' is not assignable to type 'string'.Cannot find name 'MUILanguages'
And this is how I am trying to get the value:
document.getElementById("spUserProfileProperties").innerHTML = userProperties.SPS-MUILanguages.Value;
How can I get the language value?