External class, calling javascript from Kotlin

The documentation says;

external class Node {
val firstChild: Node

fun append(child: Node): Node

fun removeChild(child: Node): Node

// etc
}

I put this;

external class Potato
{

}

The IDE says,
“Modifier ‘external’ is not applicable to ‘class’”

What gives?

1 Like

Alright. I got it working by doing Add Framework Support > Kotlin/JS > Create… > Use library from plugin.
I’m also using the EAP on both the Kotlin plugin and the IDE. Not sure if that was part of the solution or not.