Closed MohamedRejeb closed 5 months ago
BuildKonfig adds JsExport
annotation if you have a JavaScript target.
So, we'll add an option if the issue won't make it to the stable release.
The issue should be fixed in RC3, I'll check try it.
I'm closing this for now. Please let me know if you still see this error.
They fixed it in Kotlin 2.0.0-RC3, it's working fine now.
Hi, Currently, Kotlin 2.0.0-RC2 has an issue with exporting expect/actual objects to javascript and this issue is affecting BuildKonfig, hopefully it will be fixed in the next release, but I think it's better to be able to disable exporting the generated config object to javascript. Not everyone needs it.
https://youtrack.jetbrains.com/issue/KT-67978
Thanks!