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.

Build library for js with IR

See original GitHub issue

When using this library with a js(IR) target I have this error:

Could not determine the dependencies of task ':shared:jsPackageJson'.
> Could not resolve all dependencies for configuration ':shared:jsNpm'.
   > Could not resolve co.touchlab:kermit:0.1.8.
     Required by:
         project :shared
      > No matching variant of co.touchlab:kermit:0.1.8 was found. The consumer was configured to find a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js', attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir'

I suppose you just need to add js(IR) to your targets, but I never developed a multiplatform library so I’m not sure 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mrf7commented, May 13, 2021

@Shabinder @joreilly sorry for the delay, the release has been made and these changes are available in 0.1.9. Thanks for the contribution!

1reaction
Shabindercommented, May 6, 2021

@mrf7 Please create a New Release with IR support after having the PR merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kotlin/JS IR compiler
The JS IR compiler provides the incremental compilation mode for development binaries that speeds up the development process. In this mode, the ...
Read more >
Add an ability to generate separate JS files for each module
In the new JS IR backend, we will provide you with the ability to create separate JS files for each module. Activity settings....
Read more >
tessel/ir-attx4 - Infrared
JavaScript library for the Tessel Infrared module, built around an attiny84. - GitHub - tessel/ir-attx4: JavaScript library for the Tessel Infrared module, ...
Read more >
Migrating our Kotlin/JS app to the new IR compiler
To use the IR compiler for our project, we make a small change to our build.gradle(.kts) file. In the kotlin configuration block, change...
Read more >
Problem while converting code to new IR JS Compiler
1 Answer 1 · Once initial setup is loaded, add js target in build.gradle.kts · Add jsMain source set · To go terminal...
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