Enum.entries not available for kotlin js??
# javascript
a
Enum.entries not available for kotlin js??
e
https://pl.kotl.in/XqU08wzxe works on playground
a
looks like https://pl.kotl.in/S01bBoOpm is not working
e
it is working, it just doesn't go to the same log
a
It is really not printing anything this end.
e
Screenshot 2023-08-05 18.33.33.png
a
Oooh, I see. It actually logs in the browser's console
Okay, minimum producer isn't working. But in my large project, whenever I do
Enum.entries
, it fails with
Copy code
property entries is not defined
Will find better way to reproduce this and report
e
literally
Enum.entries
, or
SomeSpecificEnumType.entries
?
a
its
SomeSpecificEnumType.entries
that I am talking about
any enum to be exact. I was swapping my
.values().toList()
invokations with
.entries
t
Probably you missed api/language version configuration
1.9
required
a
Its highly unlikely, but probable. I manage the kotlin version of the project (with multiple submodules) from a single version catalog
Looks like https://kotlinlang.slack.com/archives/C0B8L3U69/p1695719712582279 manage to reproduce the bug then