Andrew
11/08/2020, 4:31 AMandylamax
11/08/2020, 5:01 AMAndrew
11/08/2020, 5:50 AMAndrew
11/08/2020, 5:53 AMBreimer
11/08/2020, 6:28 AMAndrew
11/08/2020, 5:15 PMandylamax
11/09/2020, 1:43 AMAndrew
11/09/2020, 3:16 AMandylamax
11/09/2020, 3:35 AMbuild.gradle
, so that we may see your configuration. If you can't paste. Provide a link to itandylamax
11/09/2020, 3:36 AMkotlin-react
completely?Andrew
11/09/2020, 4:11 AMAndrew
11/09/2020, 4:11 AMplugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.10'
}
repositories {
mavenCentral()
}
kotlin {
js(IR) {
browser {}
binaries.executable()
compilations.all {
kotlinOptions.moduleKind = "commonjs"
}
}
sourceSets {
commonMain {}
jsMain {}
}
}
Andrew
11/09/2020, 4:12 AMAndrew
11/09/2020, 4:13 AMandylamax
11/09/2020, 4:43 AMandylamax
11/09/2020, 4:45 AMAndrew
11/09/2020, 4:50 AMAndrew
11/09/2020, 4:52 AMandylamax
11/09/2020, 5:03 AMbuild/distribution
is already bundled with all dependencies
build/js/packages
is just the code from the project
If you need a library, don't use the bundled
one.Andrew
11/09/2020, 5:28 AMAndrew
11/09/2020, 5:31 AMAndrew
11/09/2020, 5:32 AMandylamax
11/09/2020, 5:32 AM*.d.ts
file?andylamax
11/09/2020, 5:33 AMjson
the one in the react project? or is it the one from build
dir?Andrew
11/09/2020, 5:33 AMAndrew
11/09/2020, 5:33 AMandylamax
11/09/2020, 5:36 AMAndrew
11/09/2020, 5:37 AMAndrew
11/09/2020, 5:39 AMandylamax
11/09/2020, 5:44 AMAndrew
11/09/2020, 6:18 AMAndrew
11/09/2020, 6:18 AMandylamax
11/09/2020, 9:15 AMpackage test
class Person(val name: String)
//in javascript
import {Person} from "module-name"
let p = new Person("Andrew")
Andrew
11/10/2020, 1:26 AMAndrew
11/10/2020, 1:26 AMsrc\demotest.js
Line 2:39: 'define' is not defined no-undef
Line 3:5: 'define' is not defined no-undef
Line 13:46: 'demotest' is not defined no-undef
Line 14:7: 'kotlin' is not defined no-undef
andylamax
11/10/2020, 3:30 AMandylamax
11/10/2020, 3:31 AMandylamax
11/10/2020, 3:31 AMAndrew
11/10/2020, 3:51 AMAndrew
11/10/2020, 3:51 AMAndrew
11/10/2020, 3:59 AMAndrew
11/10/2020, 4:00 AMAndrew
11/10/2020, 4:00 AMandylamax
11/10/2020, 4:02 AMAndrew
11/10/2020, 4:02 AMandylamax
11/10/2020, 4:02 AMandylamax
11/10/2020, 4:03 AMAndrew
11/10/2020, 4:09 AMandylamax
11/10/2020, 4:22 AMAndrew
11/10/2020, 5:30 AM