Hi, just trying to change to the js IR compiler ba...
# javascript
j
Hi, just trying to change to the js IR compiler backend, but keep getting the error:
You already registered Kotlin/JS target 'js' with another compiler: legacy
Any idea on how to do that properly? I tried clearing gradle / idea / etc. caches but without success so far... :(
m
Instead of
js(LEGACY)
and
js(IR)
targets you use
js(BOTH)
j
Gives the same error message, my
build.gradle
is
kotlin{
js{
//...
}
}
m
I think we need to see more of the build file in order to help you find the cause of this issue.
r
Maybe you have conflicting settings in
build.gradle
and
gradle.properties
?
j
Ahh, had
enableFeaturePreview('GRADLE_METADATA')
in my
gradle.properties
for some historic reasons...Now it works 🙂 Thanks!
😯 1