`JsPlainObject` is still not fully supported by in...
# javascript
l
JsPlainObject
is still not fully supported by intellij I’m guessing, right? Everywhere I create an instance of one intellij complains that
Interface SomeJsInterface does not have constructors
e
Yes. It works with K2, and KMP IDE support is planned for 2024.2 as far as I understand.
l
oh so kmp just doesn’t work then
e
You can activate the alpha K2 IDE to get rid of the IDE errors, but you're going to lose all functionalities in non-JVM source sets.
l
I thought the kotlin js plugin was depreciated?
I’m using the 2024.1 RC currently
h
Yes, the KGP js single platform plugin is deprecated, but is this not removed yet and the ticket is updated a while, so I guess, it’s not yet finally decided. Anyway, it’s unrelated to the new JS plain objects plugin.
l
Oh, sorry I was under the impression 2024.1 RC has k2 enabled by default. So basically I could enable k2 in intellij’s settings to get
JsPlainObject
to be recognized, but it will break most other things
✔️ 2