altavir
10/08/2019, 2:26 PMsean
10/10/2019, 1:20 PMNikky
10/10/2019, 1:39 PM.js.map
files do not seems to work, as in .. when i open the debugger in chrome the files are empty
i use moduleKind = "umd"
and require.js to load all things (because everything else seemed to be unproportional more effort)
anybody else having this issue.. or have working source mappings ?gbaldeck
10/11/2019, 3:46 AMribesg
10/11/2019, 2:11 PMcopy
function when I run my app, any idea why? Would DCE remove it or something? What can I do?gbaldeck
10/11/2019, 2:55 PMpdvrieze
10/11/2019, 3:07 PMTristan Caron
10/14/2019, 12:55 PMNikky
10/15/2019, 7:11 PMfetch('<http://another.com>', {
credentials: "include"
});
or what things to do, headers to set ?Trevor
10/15/2019, 8:50 PM.d.ts
file with dukat
? https://github.com/Kotlin/dukatdiesieben07
10/15/2019, 11:59 PMribesg
10/17/2019, 8:46 AMfcosta
10/17/2019, 12:00 PMGradle
to WebPack
with org.jetbrains.kotlin.js
?louiscad
10/17/2019, 9:42 PMaudax
10/18/2019, 5:07 AMhellman
10/20/2019, 6:40 PM@types/something
doesn’t work well. you got duplicate declarationsDaan
10/21/2019, 2:24 PMspierce7
10/21/2019, 2:59 PMtarek
10/23/2019, 12:09 AMbuild/distributions
after running ./gradlew jsBrowserWebpack
to see the result
Additionally, you can add a index.html
with a <script src="<my-module>.js"></script>
to your jsMain/resources
folder and it will be copied to your build folder and used when you run ./gradlew jsBrowserRun
sdeleuze
10/23/2019, 1:35 AMimplementation(npm("rsocket-websocket-client", "0.0.16"))
dependency to my project and I would like to consume RSocketWebSocketClient
class defined like that in JS:
class RSocketWebSocketClient {
constructor(options, encoders) {
// ...
}
close() {
// ...
}
connect() {
// ...
}
}
exports.default = RSocketWebSocketClient;
On Kotlin side, I have defined:
@JsModule("rsocket-websocket-client")
external class RSocketWebSocketClient(options: dynamic, encoders: dynamic)
fun main() {
println("Hello JavaScript!")
RSocketWebSocketClient(js("{}"), js("{}"))
}
And I get this error TypeError: RSocketWebSocketClient is not a constructor
. What did I miss?Dominik Csiba
10/23/2019, 8:47 AMdynamic
, and I don't like the un-safety.
external interface GraphvizProps : RProps {
var dot : String
var options: {width: number, height: number}
}
mzgreen
10/23/2019, 12:28 PMgaetan
10/23/2019, 2:29 PMtask app1(type: KtolinJsDce) {
dceOptions {
outputFileName = "app1"
keep = "mod.app1.start"
}
}
paul murphy
10/23/2019, 8:22 PMSam
10/24/2019, 11:39 AMorg.jetbrains.kotlin.js
gradle plugin available since Kotlin 1.3.40 release. Could you recommend any?sdeleuze
10/24/2019, 1:19 PMgaetan
10/24/2019, 2:15 PMval response = <http://client.post|client.post><HttpResponse>("/account/profile") {
val jsonData = Json(JsonConfiguration.Stable).stringify(
ProfileFormState.serializer(),
store.state
)
body = jsonData
}
Nicholas Bilyk
10/24/2019, 6:58 PMtarek
10/26/2019, 5:06 PMUInt8Array
back to a Kotlin ByteArray
than trivially ByteArray(uintArray.length) { uintArray[it] }
?patrickdelconte
10/29/2019, 2:02 PMvar ui = new firbeaseui.auth.AuthUI(firebaseI.auth());
.
Doing the naive thing in kotlin does not result in a “new” call in the generated code e.g. val ui = firebaseui.auth.AuthUI(firebase.auth())
does not work.
rightnow I am doing the following, which works but is a bit ugly
external val uiHack: AuthUI
val firebaseHack = firebase // firebase is imported as `@JsModule("firebase") external val firebase: Firebase`
val firbeaseUIHACK = firebaseui // same as above
js("var uiHack = new firbeaseUIHACK.auth.AuthUI(firebaseHack.auth());")
val ui = uiHack
the same question has also been asked on stackoverflow some time ago: https://stackoverflow.com/questions/49097351/cant-create-object-from-required-module-in-kotlinjs