https://kotlinlang.org logo
#javascript
Title
# javascript
l

leandro

07/20/2022, 3:28 PM
Kotlin 1.7.x compiler seems to duplicate a path if I configure
moduleName
in my modules inside
JS(IR) {}
.
Copy code
js(IR) {
    moduleName = "@myCompany/${project.name}"
    nodejs()
    useCommonJs()
    binaries.executable()
    ...
}
Executing
:assemble
, the task
:myModule:compileProductionExecutableKotlinJs
crashes with:
Copy code
/Users/repo/myModule/build/compileSync/main/productionExecutable/kotlin/@myCompany/@myCompany/moduleName.js (No such file or directory)
Note duplicated “/@myCompany/@myCompany/“. This wasn’t the case with Kotlin 1.6.21 and earlier versions.