Enable the Kotlin JS IR backend
See original GitHub issueHello, My project https://github.com/jmfayard/kotlin-cli-starter depends on both ktor-client and CliKt
- ktor-client is only available with the IR backend for JavaScript
- CliKt is only available with the legacy backend
CliKt can’t use the IR backend because it depends on kotest who is only available with the legacy backend.
https://github.com/ajalt/clikt/pull/291
So I’m stuck
Please describe the feature you’d like to see including any solutions in mind if you have any
# gradle.properties
# Enable consumers to use IR JS backend https://kotlinlang.org/docs/js-ir-compiler.html
kotlin.js.compiler=both
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Kotlin/JS IR compiler
The Kotlin/JS IR compiler backend is the main focus of innovation around Kotlin/JS, and paves the way forward for the technology.
Read more >The New JVM IR Backend Is Stable | The Kotlin Blog
We have been working to implement a new JVM IR backend as part of our ongoing project to rewrite the whole compiler. This...
Read more >Migrating our Kotlin/JS app to the new IR compiler
The Kotlin/JS IR compiler is currently in development (with alpha stability) and on its way to become the new default way of compiling...
Read more >Enable support for new Kotlin JS IR backend · Issue #136 · streem ...
See more ar https://kotlinlang.org/docs/reference/whatsnew14.html#new-js-ir-backend. We should use both mode to provide compatibility for pbandk users still ...
Read more >Using the Kotlin/JS IR Compiler - W3cubDocs
Rather than directly generating JavaScript code from Kotlin source code, the Kotlin/JS IR compiler backend leverages a new approach. Kotlin source code is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm that upgrading to 4.5.0 fixed the issuee, thanks Samuel!
Looks like clikt is on 4.3.1 which is 6 months old. We switched over to IR both in 4.4.x if I remember correctly (assuming adding js(BOTH) is sufficient to able it, as I thought it was).