Question about `@JsExport` in multi module KMP pro...
# javascript
d
Question about
@JsExport
in multi module KMP project setup: There is a
domain
module which has an AuthStatus Enum with
@JsExport
There is another
login
module which uses
domain
module internally.
login
module is exported as
binaries.library()
Copy code
js(IR) {
browser()
binaries.library()
}
--- There is a react app which uses exported library of login. Now, when I try to access
AuthStatus
enum, it gives error in console saying "loginApp.mjs' does not provide an export named 'AuthStatus'" What can be the reason here? Is there any specific setup needed for exports while working with multi module project setup?
e
This reminds me of a known issue: https://youtrack.jetbrains.com/issue/KT-65695/
d
Has anyone came across any solution or workaround?
e
Look into the issue, there is a workaround explained there.