Upgrading to kotlin 2.1 fixed this issue, allowing to us @JsExport in commonMain. (Thanks to folks in kotlin lang slack for pointing this out)