```> Task :common:compileKotlinJs FAILED e: Per...
# javascript
j
Copy code
> Task :common:compileKotlinJs FAILED
e: PersonalTransactionsMapper.kt:38:52 Unresolved reference 'getOrDefault'.
i'm getting that all my
getOrDefault
calls in
common
are failing when i try to compile the javascript version. per the docs, this should exist in the stdlib but not sure what is going on here. kotlin 2.0.0
getOrElse
does work
t
Issue?
e
not an issue. getOrDefault is a default Java method, which of course is not available on other platforms. getOrElse is a Kotlin extension which is available.
where do you see getOrDefault in the stdlib docs?
I know the url says jvm but I assumed those dots on the doc meant javascript
e
that should be what they mean. it was correct previously, perhaps something broke with the 2.0 docs