question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable the Kotlin JS IR backend

See original GitHub issue

Hello, 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jmfayardcommented, May 14, 2021

I can confirm that upgrading to 4.5.0 fixed the issuee, thanks Samuel!

1reaction
sksamuelcommented, May 14, 2021

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found