No kotlin.js file output by kotlinc-js
Solution 1:
As described here, yes, you'll need to include kotlin.js
before you can run your own Kotlin code. This file contains the Kotlin runtime and standard library.
If you're doing this from the command line, you can find kotlin.js
in the lib
folder of the compiler, inside kotlin-stdlib-js.jar
(which you can just open as a regular .zip
file).