Hello! I'm trying to compile Kotlin into js using ...
# javascript
p
Hello! I'm trying to compile Kotlin into js using new Ir backend and 1.4-M1 version of Kotlin. But got compilation error:
Copy code
Caused by: java.lang.AssertionError: Built-in class kotlin.Any is not found
My configuration: in gradle.properties:
Copy code
kotlin.js.compiler=ir
In gradle.build
Copy code
kotlin { 
  target { 
    useCommonJs()
    produceExecutable()
    browser {}
  }
}
i
Hi! Do you have dependency on
kotlin-stdlib-js
?
p
Thanks! It was included conditionaly wrongly. Now it is ok. But i can't find generated js in build/lib. I use gradle submodules wich compiled as kotlin js libraries and one with build executable (that have no sources but dependencies on those submodules).
i
You can find it in
root/build/js/packages/executable-module-name/kotlin
It should be there
p
Thanks! I was searching in submodule build directory. Now it is clear!