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
  • j

    Jim

    09/28/2021, 9:24 PM
    cross posting here cause it seems relevant
    t
    • 2
    • 7
  • b

    Bart

    09/29/2021, 7:58 PM
    Hi all, Im trying to build ui in kotlin/js, at this moment strugling with sign up component. Im trying to use fetch() to post login&password to my API.
    val post = window
    .fetch(URL, RequestInit("post",HEADER,"{$bodyVar})
    But its ending with error:
    Failed to execude 'fetch' {...} Failed to read 'headers' from RequestInit
    Already i try few types of typing header but all ends with same result. How fetch function should looks? How i can but header to IT? I want to put Content-Type and Authorization
    r
    • 2
    • 3
  • a

    andylamax

    09/29/2021, 11:59 PM
    Task
    :compileDevelopmentExecutableKotlinJs
    can really make your day so bad. I am currently getting this error
    e: java.lang.IllegalStateException: Variable name is not found user
            at org.jetbrains.kotlin.ir.backend.js.utils.JsGenerationContext.getNameForValueDeclaration(JsGenerationContext.kt:65)
            at org.jetbrains.kotlin.ir.backend.js.transformers.irToJs.IrElementToJsExpressionTransformer.visitGetValue(IrElementToJsExpressionTransformer.kt:106)
    . . .
    It is a kotlin compiler error. Has anyone being getting this? It worked a few minutes ago. I ddn't change any dependencies. Using Kotlin 1.5.30
    • 1
    • 1
  • r

    Rohan Maity

    09/30/2021, 3:31 AM
    Hello I am new to build apps with Kotlij JS I want to have a suggestion for which framework to use for UI • Kotlin - react • Compose for web PS: we are going to use jetpack compose for Android and potentially Desktop But want opinions here
    n
    n
    j
    • 4
    • 6
  • m

    Mathias Cochet

    09/30/2021, 7:20 AM
    Hey guys, I just started working for a company that has a small tornadofx app that saves some data to a database using exposed. The tornado app will run fullscreen on a small linux computer with a touchscreen (where users fill in their data). Now they also want a web app to view the data from said database, and this web app also needs to run on the same linux computer, but I’m having trouble choosing the correct tools and have some questions: • Would ktor (with freemark) or kotlin/js(react) be better for this? • I know it’s possible to make this a multiplatform project but is it possible to put this whole project into one package (so everything is started with 1 executable)
    r
    • 2
    • 3
  • m

    Miquel Àngel Román

    10/03/2021, 7:34 PM
    Hi, good night! I am having some trouble compiling a Kotlin file targeting Node environment from the command line. I wrote a Stack overflow question here
    • 1
    • 1
  • a

    ankushg

    10/05/2021, 1:01 AM
    Does anyone have (or is anyone working on) an efficient workflow for generating/maintaining
    external interface
    s for `data class`es when working in a multiplatform project with JS targets? What about generating/maintaining the methods to map between the two? Context/Problem: We've written some `external interface`s for JS interop for methods that use simpler classes, but for complicated, nested, interconnected classes, it's a lot of effort to maintain this code. We're currently using
    kotlinx.serialization
    and
    encodeToDynamic
    /`encodeFromDynamic` to handle those complicated types. The developer experience within KMP when using
    kotlinx.serialization
    is much nicer, but: 1. we get
    dynamic
    types back instead of rich
    external interface
    s, so we don't get typescript definitions 2. serialization's json artifact is extremely heavyweight for this on web because it pulls in full JSON support for strings and JsonElement trees when we really just need lightweight methods that create and return plain JS objects as described here Potential Solution? It seems like those two problems above might be separately solvable? 1. Could be solved with an annotation processor to generate `external interface`s for classes annotated with
    @Serializable
    (or some other annotation) (which we can then cast the serialization-generated `dynamic`s to/from) 2. Can maybe be solved with an alternative serialization format that is a. only usable by the
    js
    target, b. operates directly on JS `Object`s, and c. excludes all the heavy stuff for string or JsonElements in the official
    json
    format If this sounds like stuff that anyone else is working on or running up against, I'd love to chat!
    a
    g
    • 3
    • 3
  • a

    Alexander

    10/05/2021, 8:38 AM
    I'm writing a multiplatform library and stuck with casting a
    Double
    . Here is an example:
    val n = 1.1 as Any
    if (n is Number) {
        println(n.toLong())
        println(n.toLong() == 1L)
    }
    if (n is Int) {
        println(n.toLong())
        println(n.toLong() == 1L)
    }
    Both conditions are resolved to
    true
    (I know that Javascript hasn't integer numbers so its ok). But what is more interesting it prints:
    1
    true
    1
    false
    When I use
    kotest
    it fails with
    expected:<1L> but was:<1.1L>
    .
    1.1L
    looks really strange for me.
    b
    e
    +2
    • 5
    • 35
  • j

    jonnyzzz

    10/06/2021, 10:46 AM
    https://twitter.com/jonnyzzz/status/1441339442753511439?s=20
    :kotlinnew: 5
    😯 4
    👏 2
    u
    g
    • 3
    • 5
  • a

    Aleksandar Milojević

    10/06/2021, 12:51 PM
    Hi all, I’m trying to export 3 very simple classes.
    @JsExport
    open class MyFirstClass {
        open fun myFirstClassFunction() {
            println("################ MyFirstClass")
        }
    }
    
    @JsExport
    open class MySecondClass {
        open fun mySecondClassFunction(){
            println("################ MySecondClass")
        }
    }
    
    @JsExport
    open class MyThirdClass {
        open fun myThirdClassFunction() {
            println("################ MyThirdClass")
        }
    }
    Basically, these classes are the same. After compile, a get d.ts. file and .js d.ts. file looks like:
    export class MyFirstClass {
        constructor();
        myFirstClassFunction(): void;
    }
    export class MySecondClass {
        constructor();
        mySecondClassFunction(): void;
    }
    export class MyThirdClass {
        constructor();
        myThirdClassFunction(): void;
    }
    but, the .js file added some numbers beside the methods name
    MyFirstClass.prototype.myFirstClassFunction_0 = function () {
        println('################ MyFirstClass');
      };
      MyFirstClass.$metadata$ = {
        simpleName: 'MyFirstClass',
        kind: 'class',
        interfaces: []
      };
      function MySecondClass() {
      }
      MySecondClass.prototype.mySecondClassFunction = function () {
        println('################ MySecondClass');
      };
      MySecondClass.$metadata$ = {
        simpleName: 'MySecondClass',
        kind: 'class',
        interfaces: []
      };
      function MyThirdClass() {
      }
      MyThirdClass.prototype.myThirdClassFunction_3 = function () {
        println('################ MyThirdClass');
      };
      MyThirdClass.$metadata$ = {
        simpleName: 'MyThirdClass',
        kind: 'class',
        interfaces: []
      };
    After inheritance like in example
    class MyFirstClassTS extends MyFirstClass {
      constructor() {
        super();
      }
      myFirstClassFunction() {
        <http://console.info|console.info>("############ MyFirstClassTS")
      }
    }
    
    class MySecondClassTS extends MySecondClass {
      constructor() {
        super();
      }
      mySecondClassFunction() {
        <http://console.info|console.info>("############ MySecondClassTS")
      }
    }
    
    class MyThirdClassTS extends MyThirdClass {
      constructor() {
        super();
      }
      myThirdClassFunction() {
        <http://console.info|console.info>("############ MyThirdClassTS")
      }
    }
    in console I got very different result as in picture below.
    :thread-please: 1
    • 1
    • 1
  • r

    Robert Jaros

    10/07/2021, 7:01 AM
    It seems once again Kotlin/JS is broken because of some new npm dependency.
    🤔 3
    😿 6
    e
    p
    +4
    • 7
    • 17
  • m

    mbonnin

    10/07/2021, 12:48 PM
    Hi 👋 . I'm struggling a bit with execution environments. I just got
    Please choose a JavaScript environment to build distributions and run tests.
    . I understand the need to specify browser or nodejs for running tests but how does that impact building distribution? I'm building a lib and I would expect the lib to be consumed from both browser and nodejs project so it feels weird having to chose one there.
    b
    u
    • 3
    • 24
  • g

    Gabriel Duncan

    10/08/2021, 10:34 PM
    anyone else getting the webpack-cli/serve error since that dependency was updated to 1.6.0 in the background?
    b
    • 2
    • 2
  • j

    Jilles van Gurp

    10/11/2021, 8:46 AM
    It seems kotlin-js pulls in the latest webpack with a new bug that is preventing
    jsBrowserDevelopmentRun
    from doing its thing. Is anyone else running into this? Or better still, have a workaround? Basically, started happening after I did a gradle clean on my fritz2 project. After this it pulled in the latest npm dependencies. Was working fine before the gradle clean.
    [webpack-cli] Unable to load '@webpack-cli/serve' command
    [webpack-cli] TypeError: options.forEach is not a function
    [webpack-cli] TypeError: options.forEach is not a function
        at WebpackCLI.makeCommand (/Volumes/SAMSUNG_2TB/git/formation/maptool/build/js/node_modules/webpack-cli/lib/webpack-cli.js:173:21)
        at ServeCommand.apply (/Volumes/SAMSUNG_2TB/git/formation/maptool/build/js/node_modules/@webpack-cli/serve/lib/index.js:41:19)
        at loadCommandByName (/Volumes/SAMSUNG_2TB/git/formation/maptool/build/js/node_modules/webpack-cli/lib/webpack-cli.js:907:35)
        at async Command.<anonymous> (/Volumes/SAMSUNG_2TB/git/formation/maptool/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1462:17)
        at async Promise.all (index 0)
        at async WebpackCLI.run (/Volumes/SAMSUNG_2TB/git/formation/maptool/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1500:9)
        at async runCLI (/Volumes/SAMSUNG_2TB/git/formation/maptool/build/js/node_modules/webpack-cli/lib/bootstrap.js:11:9)
    It seems the solution is somehow downgrading webpack. https://github.com/webpack/webpack-cli/issues/2990
    r
    • 2
    • 4
  • p

    Pitel

    10/11/2021, 9:41 AM
    class TemplateParser : StreamParser {
        override fun token(stream: StringStream, state: dynamic): String? {
            console.log(stream, state)
            return null
        }
    }
    This gets compile to this JS:
    function TemplateParser() {}
        TemplateParser.prototype.token_qt5re9_k$ = function(stream, state) {
            console.log(stream, state);
            return null;
        }
        ;
        TemplateParser.prototype.token = function(stream, state) {
            return this.token_qt5re9_k$(stream, state);
        }
        ;
    Which crashes with
    Uncaught TypeError: this.token_qt5re9_k$ is not a function
    WTF?!
    s
    • 2
    • 3
  • s

    spand

    10/11/2021, 12:24 PM
    We are starting to have ES6 classes show up in our npm dependencies which breaks the generated code for super class constructor calling. I am sure it is possible to get webpack to transform it but my google-foo fails me. Can anyone help me out ?
    • 1
    • 2
  • s

    spand

    10/11/2021, 12:27 PM
    Related, I assume that es6 output from the Kotlin compiler would fix this but progress seems very far away (https://youtrack.jetbrains.com/issue/KT-39650). Is that a fair assessment ?
    👀 1
    t
    • 2
    • 3
  • a

    ankushg

    10/11/2021, 11:24 PM
    anyone know if there's an equivalent to https://github.com/rickclephas/KMP-NativeCoroutines to automatically convert
    suspend fun
    to
    Promise
    ?
    ➕ 1
    s
    • 2
    • 2
  • a

    Antoine Lamy

    10/12/2021, 5:41 PM
    Is there any workaround for KT-37710 aside from manually exporting all the classes? I'm trying to export definitions in the global namespace but none of the things I tried seems to work.
    t
    • 2
    • 7
  • a

    andylamax

    10/13/2021, 3:09 AM
    Hello there, is there a way to get the comments from kotlin to appear in the generated .d.ts file?? If so how??? or else, I might create an issue in YT. Just asking here for exhaustiveness
    👀 1
    a
    s
    • 3
    • 2
  • m

    mbonnin

    10/13/2021, 9:14 AM
    Is there a JVM implementation of the JavaScript
    Number.toString()
    method somewhere? (see https://youtrack.jetbrains.com/issue/KT-33358). I need to write some JVM code that maps 1:1 with some JS code.
    e
    • 2
    • 10
  • a

    Alfred Lopez

    10/13/2021, 1:39 PM
    Hi, My MPP is a lib that has JVM and JS targets. The library contains an object that launches a coroutine that polls a server on an interval while (isActive). This starts up first, but, in a JS app, it seems that it blocks the application from processing anything else in the library (or the application, for that matter). I'm assuming (and I'm not a JavaScript expert, nor do I intend to be) that the polling is blocking the main thread in Node, since when I disable that object, things seem to flow fine. Is my assessment correct? If so, what patterns/best practices can I use to solve for this? Thanks!
    u
    • 2
    • 7
  • m

    mbonnin

    10/13/2021, 3:38 PM
    I get this relatively often in CI these last days:
    Execution failed for task ':module:kotlinNpmInstall'.
    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    > Process 'Resolving NPM dependencies using yarn' returns 137
    Anyone else noticing this? Any way to mitigate?
    👀 1
    b
    • 2
    • 3
  • a

    Alexander Weickmann

    10/13/2021, 4:30 PM
    Hi all, When confiugring DCE in Gradle DSL, it now warns about:
    This declaration is experimental and its usage should be marked with '@org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalDceDsl' or '@OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalDceDsl::class)'
    However, when I mark it with OptIn like so:
    @OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalDceDsl::class)
    dceTask {
    then the above warning disappears, but I get a warning for the OptIn itself:
    This class can only be used with the compiler argument '-Xopt-in=kotlin.RequiresOptIn'
    I already enabled this compiler flag like so:
    kotlin {
        sourceSets.all {
            languageSettings.optIn("kotlin.RequiresOptIn")
        }
    }
    However, this seems to enable the OptIn only for the app source code, but not for the Gradle build script itself. How can we enable @OptIn annotation for the Gradle build script itself, so we can annotate the dceTask with OptIn and not in turn get a warning for the OptIn usage?
    t
    • 2
    • 2
  • t

    Tomasz Krakowiak

    10/13/2021, 7:17 PM
    Is there any way to get better stacktraces with IR? (screenshot in comments)
    e
    a
    • 3
    • 5
  • j

    Jérôme Gully

    10/14/2021, 12:20 PM
    Hi. I have a KMP project with android/ios/js. What is the gradle task to export ALL (shared + js + dependencies) in one js file to use it in an electron app for example ? I don’t find much doc about that. We have tried build and jsBrowserDistribution but nothing seems to match what I need gradle js part
    js(IR) {
        browser {
            commonWebpackConfig {
                cssSupport.enabled = true
            }
            binaries.executable()
        }
    }
    a
    g
    • 3
    • 5
  • j

    julien lengrand-lambert

    10/15/2021, 1:10 PM
    Hey everyone, a short question. I’m starting my first project in kotlin js. When typing code in my main function, I get no proposals for imports, nor any completion. I do get completion after I type ‘.’ when valid. Is that expected?
    b
    • 2
    • 4
  • j

    julien lengrand-lambert

    10/15/2021, 1:19 PM
    Alright, that seems to be coming from the project, though I’m not sure why. Other projects work alright. If anyone has an idea, I’m interested.
    v
    • 2
    • 3
  • c

    Christian Gaisl

    10/17/2021, 1:35 PM
    Hi, I have some experience with Kotlin Multiplatform on mobile, and recently I started getting into the JS side of things. To me, the main point of KMP was, that I can share business logic between clients on different platforms, regardless of UI framework. I was surprised to find, that the JS documentation seemed to focus heavily on creating a React App with Kotlin. I don’t want to tie myself down to React, and be at the mercy of the maintainers of the Kotlin wrapper for it. That’s why I’m looking into KMP in the first place, instead of some cross-platform UI framework. With a lot of googling (I could not find official documentation on this?), I found that it is possible to create a package with Typescript annotations when building a Multiplatform library with
    js(IR) {
        browser()
        binaries.library()
    }
    which creates a folder inside the “build” folder called “productionLibrary”. This folder I could then import in my Angular App (or any other framework) with npm install absolutePathToProductionLibrary. I have a few questions about that: • Is this a/the recommended way to do this? • I can only find classes annotated with @JsExport in the generated Javascript/Typescript code, do I have to do that for everything? • I can’t annotate classes in the common/shared module of my Multiplatform library with @JsExport, how do I get those classes to show up in the generated JavaScript code?
    s
    t
    +2
    • 5
    • 20
  • h

    Harald Pehl

    10/18/2021, 6:51 AM
    With the release of Parcel 2.0 (https://parceljs.org), I am wondering if there are any considerations to support Parcel for Kotlin/JS. Parcel seems to be very powerful and IMO is a fresh start in the area of web bundlers.
    👀 4
    👍 1
    m
    • 2
    • 3
Powered by Linen
Title
h

Harald Pehl

10/18/2021, 6:51 AM
With the release of Parcel 2.0 (https://parceljs.org), I am wondering if there are any considerations to support Parcel for Kotlin/JS. Parcel seems to be very powerful and IMO is a fresh start in the area of web bundlers.
👀 4
👍 1
m

max.kammerer

10/29/2021, 6:49 AM
Hi @Harald Pehl! I assume that you speak about Parcel support similar to Webpack one that Kotlin has in Gradle. Regardless of that there is quite simple support of Kotlin in Parcel via https://github.com/parcel-bundler/parcel/issues/2177 And there is also open request to more complex one: https://github.com/parcel-bundler/parcel/issues/3356 . I wonder could they be useful in your use cases? Could you share them (maybe in PM)?
h

Harald Pehl

10/29/2021, 1:46 PM
Thanks @max.kammerer for the pointers. That looks quite promising. I had a deeper integration of Parcel with Gradle in mind, though. A replacement of Webpack by Parcel so to speak. I like the Gradle first approach, it makes sense for Kotlin/JS development and I think it should stay that way.
:tnx: 1
I don’t expect a solution with Parcel any time soon. I was just wondering if there’s someone working on it atm.
View count: 2