When upgrading my project from Kotlin `2.0.0` to K...
# javascript
r
When upgrading my project from Kotlin
2.0.0
to Kotlin
2.0.10-RC
my integration with some JS modules is broken. E.g.
export 'RsupProgress' (imported as 'RsupProgress') was not found in 'rsup-progress' (possible exports: Progress)
. What can be the cause of this? Can't find anything in 2.0.10-RC release notes.
1
b
Could you please share an example project where this issue can be reproduced?
r
Unfortunately it's not that easy. It's this project: https://github.com/rjaros/kilua , but there are some other dependencies I need to consider. I'll try to make a branch.
🙏 1
It seems like my
@JsName
annotation (which is an expect/actual typealias for
kotlin.js.JsName
) is not working anymore.
b
Can I ask you to create a ticket on kotl.in/issue? Seems like an important issue.
b
Thank you!
r
What's strange, I'm using the same expect/actual trick for
@JsModule
annotation, and it seems to work.
Or perhaps it's the problem with
kotlin.js.JsName
itself ...
b
Hm. This is strange. As far as I know, you should be able to use
JsName
in common code. Could you please try annotating your
RsupProgress
class as
@kotlin.js.JsName
and see if it works?
r
Because I'm using also the original annotations and it doesn't seem to work as well.
Yes, the original annotation doesn't work as well.
both
@JsModule
and
@JsName
- and I have an error:
export 'Trix' (imported as 'Trix') was not found in 'trix' (possible exports: default)
Compiling with
2.0.10-RC2-532
fixed the problem. Thank you!. I'll just have to wait till next release.
🆒 2
It also fixed KT-69876, which also affected my project after upgrade.