I am using Yested (a Kotlin JS library) in a Kotlin JS project. With Kotlin 1.03 it was working, but after I updated to Kotlin 1.0.5, somehow it isn’t working anymore. If I try to go back to Kotlin 1.0.3, my IntelliJ plugin can’t read the files. I’d rather stick with 1.0.5 anyway, but with 1.0.5 I’m getting is this error in the browser JS console:
webclient_main.js:1180 Uncaught TypeError: Cannot read property ‘yested’ of undefined
on this line:
var div = _.net.yested.with_ji1yox$(new _.net.yested.Div(), _.client.main_kand9s$f);
The .js files for both yested and webclient_main seem to define _. Each project’s .js file declares its own _, but I don’t see anything that pulls in yested into webclient. I’m using KotlinJS’s Module kind of “Plain (put to global scope)”.
I tried calling require(“Yested”), but that didn’t compile because it tried to use a require method that takes a boolean, not a string.
Any help would be very appreciated!