Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve kotlin-stdlib-js for Kotlin 2.0 #1176

Open
neckbosov opened this issue May 24, 2024 · 4 comments
Open

Failed to resolve kotlin-stdlib-js for Kotlin 2.0 #1176

neckbosov opened this issue May 24, 2024 · 4 comments

Comments

@neckbosov
Copy link

rules_kotlin version: 1.9.1
Bazel version: 5.4.1

I tried to update kotlin version to 2.0 in my project and got following error:

external/rules_kotlin/kotlin/compiler/BUILD.bazel:22:22: no such target '@com_github_jetbrains_kotlin//:lib/kotlin-stdlib-js.jar': target 'lib/kotlin-stdlib-js.jar' not declared in package ''

What can cause such an error? I tried to look at the rules_kotlin code but failed to understand where @com_github_jetbrains_kotlin came from. What can I do to solve the problem?

@pettermahlen
Copy link
Contributor

pettermahlen commented May 24, 2024

I am running into something similar. AFAICT, kotlin-stdlib-js is distributed as a klib artifact, not a jar. It wasn't the same in 1.9.23; that included a .jar file.

@neckbosov
Copy link
Author

Looks related to #808

@restingbull
Copy link
Collaborator

We are considering removing js support for 2.0 -- until such time as we have proper kotlin native support.

@restingbull
Copy link
Collaborator

Voting Box is Open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants