https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
javascript
  • p

    pxdr

    10/10/2018, 12:02 PM
    I’m working with https://github.com/JetBrains/create-react-kotlin-app and have to enable CORS, but cannot figure out how. What I have tried so far, was placing a webpack config js file in the root directory with this content:
    headers: {'Access-Control-Allow-Origin': '*'}
    Anyone knows how to configure this properly?
    g
    • 2
    • 4
  • f

    fkrauthan

    10/10/2018, 6:39 PM
    Is there any roadmap of planned improvements and features specific to kotlinjs?
    n
    • 2
    • 2
  • n

    napperley

    10/10/2018, 10:17 PM
    What is the role of Kotlin JS considering that Kotlin Native has WASM support (currently experimental)?
    e
    s
    • 3
    • 4
  • g

    gbaldeck

    10/12/2018, 3:47 AM
    Hey guys, I have created a starter repo for using the Kotlin React wrapper with a custom Webpack setup for Kotlin 1.3 JS multiplatform projects. This starter is setup with JS/JVM multiplatform but it will work for any multiplatform combination you would like to do. I have put comments in the webpack config files and some of build.gradle to explain the configurations. It starts you off with a working React component and multiplatform sample files. I hope this helps everyone with their Kotlin/JS 1.3 multiplatform projects. https://github.com/gbaldeck/react-js-jvm-kotlin-multiplatform
    👍 7
    h
    s
    • 3
    • 3
  • a

    Allan Wang

    10/13/2018, 7:43 AM
    Has anyone tried creating a site/browser extension with material components web? They have a react component in js, though I'm curious if there is a kotlin version anywhere
    n
    g
    • 3
    • 6
  • g

    gbaldeck

    10/15/2018, 2:36 AM
    how do I suppress unchecked cast to dynamic warnings?
    s
    • 2
    • 1
  • j

    jacob

    10/15/2018, 7:04 AM
    when it compiles, do you reload the page?
    m
    • 2
    • 1
  • m

    Mikhail Savin

    10/15/2018, 3:43 PM
    @Tsvetozar Bonev I think you should use redux, because under the hood it’s just a plain js
    g
    • 2
    • 2
  • f

    fkrauthan

    10/16/2018, 2:13 AM
    I know I could use extension functions. But If I need to extensively extend a existing javascript class monkey patching should be easier to use
    g
    • 2
    • 7
  • f

    fkrauthan

    10/16/2018, 3:29 AM
    Hmm I like the idea of Kotlin for JS and it has some great features. But currently it seems like that my Kotlin generated JS code is 10x bigger then similar code written in simple ES6
    g
    • 2
    • 1
  • f

    fkrauthan

    10/16/2018, 4:40 AM
    I actual have DCE enabled. And I just tested it my es6 to es5 is not that much bigger still approximately 9x smaller
    b
    • 2
    • 19
  • t

    timrijckaert

    10/16/2018, 9:36 AM
    Anybody here successfully managed to integrate kotlin-frontend-plugin and google actions? A starter project would really help for someone not at home in js world 😉
    g
    • 2
    • 2
  • g

    gbaldeck

    10/16/2018, 3:49 PM
    what's the best way to have a kotlin class compile down to a plain JSON object to send to a REST endpoint?
    c
    b
    s
    • 4
    • 9
  • f

    fkrauthan

    10/18/2018, 5:29 PM
    But why do you use DCE for a library? I thought the recommendation for DCE is to be only used for final application builds
    g
    • 2
    • 1
  • r

    robstoll

    10/19/2018, 8:25 AM
    how do you write tests for javascript? Is using mocha, karma and the like still the right approach or is there no better support already built into intellij? https://github.com/JetBrains/kotlin-examples/tree/master/gradle/js-tests
    g
    • 2
    • 2
  • p

    pabl0rg

    10/19/2018, 9:06 AM
    @ankushg you may be interested in this https://github.com/ntrrgc/ts-generator
    👍 1
    a
    • 2
    • 1
  • a

    ankushg

    10/19/2018, 7:09 PM
    Is this something #serialization can easily handle?
    e
    f
    g
    • 4
    • 26
  • r

    robstoll

    10/21/2018, 8:42 PM
    Did one of you ever have the situation where kotlin produced a wrong order in the resulting JS module? If so, how have you influenced the compiler to generate a different order?
    g
    • 2
    • 6
  • b

    Bernhard

    10/22/2018, 10:42 AM
    hi, how slim can you get your bundle?
    a
    • 2
    • 1
  • b

    Bernhard

    10/22/2018, 10:47 AM
    if I need a 1.3mb standard lib file then I'm not interested
    n
    • 2
    • 2
  • m

    Mike

    10/23/2018, 9:25 AM
    Sorry for reposting my question but I’m really eager to play with KotlinJS and can’t find a solution… If I compile my little KotlinJS/npm/webpack4 example it works with ‘npm start’ for the first time but if I change something the change gets not reflected. Browser cache ist turned off. The odd thing is that the modification date of kotlinApp.js is always 01.01.70!!! Issue report is here: https://youtrack.jetbrains.com/issue/CRKA-94
    g
    • 2
    • 6
  • r

    robstoll

    10/25/2018, 10:17 AM
    is there an official way to retrieve metadata in JS? for instance, I need
    $metadata$.interfaces
    s
    • 2
    • 2
  • s

    Sam Pengilly

    10/25/2018, 12:15 PM
    is the output from:
    console.log(req.query)
    console.log(req.query.get("test"))
    • 1
    • 1
  • h

    Hamza

    10/26/2018, 1:42 PM
    also, how do i get the response in a XHttpRequest?
    d
    g
    g
    • 4
    • 4
  • c

    czuckie

    10/27/2018, 3:46 PM
    afternoon/evening(/morning?) guys, what's the quickest way to get the ability to run Kotlinjs unit tests inside intelli J?
    j
    • 2
    • 3
  • a

    Absolute

    10/27/2018, 4:44 PM
    KotlinJS work fine with webgl ?
    g
    • 2
    • 1
  • m

    Mike

    11/01/2018, 6:42 AM
    Is someone responsible for these issues? https://youtrack.jetbrains.com/issues/CRKA Almost no feedback at all in this YT-section. It’s to bad.
    ☝️ 1
    h
    h
    • 3
    • 2
  • n

    napperley

    11/05/2018, 9:59 PM
    Trying to parse a JSON string to Array<Repo> but end up with this error:
    Uncaught (in promise) SyntaxError: Unexpected token o in JSON at position 1
    What does this error message signify??
    d
    j
    • 3
    • 8
  • a

    Ahmet Enes Duruer

    11/07/2018, 12:50 PM
    Could anyone help me about creating kotlin wrapper for a react-js library?
    a
    • 2
    • 5
  • c

    coder82

    11/07/2018, 1:21 PM
    does kotlinjs work on ios Safari?
    t
    • 2
    • 1
Powered by Linen
Title
c

coder82

11/07/2018, 1:21 PM
does kotlinjs work on ios Safari?
t

tarek

11/07/2018, 1:24 PM
Kotlin/JS outputs Javascript files. They work like all JS files. So yes.
View count: 2