https://kotlinlang.org logo
#javascript
Title
# javascript
l

Luca

04/01/2024, 6:36 PM
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

Edoardo Luppi

04/01/2024, 8:41 PM
Yes. It works with K2, and KMP IDE support is planned for 2024.2 as far as I understand.
l

Luca

04/01/2024, 8:41 PM
oh so kmp just doesn’t work then
e

Edoardo Luppi

04/01/2024, 8:42 PM
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

Luca

04/01/2024, 8:43 PM
I thought the kotlin js plugin was depreciated?
I’m using the 2024.1 RC currently
h

hfhbd

04/01/2024, 10:01 PM
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

Luca

04/01/2024, 10:07 PM
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