Until recently I've been able to build and run my ...
# javascript
a
Until recently I've been able to build and run my nodejs application (a server) by copying a single a single file to my sever after running
productionExecutableCompileSync
. All of a sudden it however starting failing with a lot of errors when starting the application, e.g.:
Error: Cannot find module './kotlin-kotlin-stdlib-js-ir.js'
. As far as I remember I haven't changed anything except for updating to newest Intellij and kotlin plugin. Updating to Kotlin 1.7.0 (from 1.6.21) didn't do any difference either. Anyone else tried the same or similar?
2
Adding
kotlin-kotlin-stdlib-js-ir.js
and all other required files to the server as well makes the application run, but I would rather prefer how it was like before with everything (that wasn't fetched from npm) bundled into one JS-file.
t
For IR - whole-program
a
Thank you so much! That was exactly what I needed! 😄 😄 😄