https://kotlinlang.org logo
Docs
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
  • z

    Zimin Byun

    08/01/2021, 11:06 PM
    Hi! Is
    @JsModule
    annotation needs additional dependency? (used in this link) (I’m trying to make javascriptModule from kotlin.)
    🇳🇴 1
    t
    • 2
    • 4
  • n

    Nikolai Sviridov

    08/02/2021, 10:11 AM
    Hello, encountered problem with object keys. @JsName("keyName") on fields and @JsExports doesn't work for me or I'm not using them in the right way. More in thread.
    ✅ 1
    a
    • 2
    • 4
  • p

    Pitel

    08/02/2021, 10:13 AM
    > Task :compileKotlinJs FAILED
    e: java.lang.IllegalArgumentException: Failed requirement.
            at org.jetbrains.kotlin.backend.common.serialization.IrDeclarationDeserializer.deserializeIrTypeAlias(IrDeclarationDeserializer.kt:368)
            at org.jetbrains.kotlin.backend.common.serialization.IrDeclarationDeserializer.deserializeDeclaration(IrDeclarationDeserializer.kt:752)
            at org.jetbrains.kotlin.backend.common.serialization.IrFileDeserializer.deserializeDeclaration(IrFileDeserializer.kt:39)
            at org.jetbrains.kotlin.backend.common.serialization.FileDeserializationState.deserializeAllFileReachableTopLevel(IrFileDeserializer.kt:139)
            at org.jetbrains.kotlin.backend.common.serialization.ModuleDeserializationState.deserializeReachableDeclarations(BasicIrModuleDeserializer.kt:172)
            at org.jetbrains.kotlin.backend.common.serialization.BasicIrModuleDeserializer.deserializeReachableDeclarations(BasicIrModuleDeserializer.kt:148)
            at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.deserializeAllReachableTopLevels(KotlinIrLinker.kt:102)
            at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.findDeserializedDeclarationForSymbol(KotlinIrLinker.kt:121)
            at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.getDeclaration(KotlinIrLinker.kt:159)
    How can I figure out which requirement? I can't find the
    IrDeclarationDeserializer.kt
    source using :google:. Btw, it started happnening when I changed my custom Material UI wrapper for Muirwik. It seems totaly unrelated, but I can reliably reproduce it by just changing git branches. Oh, and I just have 2 simple data classes marked as
    @Serializable
    .
    a
    r
    • 3
    • 4
  • r

    Rescribet

    08/02/2021, 3:24 PM
    Seems a bit odd that the kotlin-css flex function behaves differently from the flexbox spec in that omitting
    basis
    defaults to
    FlexBasis.auto
    rather than
    FlexBasis.none
    // CSS
    flex: 1;
    
    // Kotlin
    flex(1.0) // Different
    flex(1.0, basis = FlexBasis.none) // same
    Noticed this since I didn’t understand why my colleague used
    put("flex", "1")
    over
    flex(1.0)
    t
    • 2
    • 3
  • r

    Robert Jaros

    08/03/2021, 7:47 AM
    Anyone played/worked with debugging Kotlin/JS code with IntelliJ IDEA Ultimate JS Debugger?
    c
    o
    c
    • 4
    • 12
  • a

    Attila Király

    08/03/2021, 4:10 PM
    hi, is there a way to include handwritten js files into a kotlin/js project? To make them part of the webpack bundle? I tried to set the "entry" property in (common)WebpackConfig but it didn't help.
    t
    • 2
    • 11
  • g

    GUIGAL Allan

    08/03/2021, 7:16 PM
    Hi! Is there any way to make a deep copy of an object of the Any or Object type ? I’ve implemented one but it breaks the == methods despite having the same fields. Thanks in advance
    t
    • 2
    • 9
  • m

    mike.holler

    08/03/2021, 7:48 PM
    I've been working with Kotlin/JS and Ktor's HTTP client, and although my multiplatform tests pass in JVM and native, they fail for JavaScript. The reason why is cryptic. If it helps, I'm using the IR compiler and targeting the NodeJS runtime. Is there any way to get better error messages for something like this?
    Error_0: Fail to fetch
    Error_0: Fail to fetch
    	at _no_name_provided__246.invoke_1ti8hr(kotlin/multiplatform-sdk-end-to-end-tests-test.js:69724)
    	at <global>.<unknown>(/home/mjholler/Git/multiplatform-sdk/build/js/packages/multiplatform-sdk-end-to-end-tests-test/kotlin/multiplatform-sdk-end-to-end-tests-test.js:69752)
    	at <global>.processTicksAndRejections(internal/process/task_queues.js:93)
    c
    • 2
    • 3
  • p

    Pitel

    08/05/2021, 6:54 AM
    Is someone here using Redux with data classes for state? It keeps giving me errors and/or weird behaviour.
    t
    • 2
    • 3
  • p

    Pitel

    08/05/2021, 9:06 AM
    How to combine
    rEnhancer()
    with Redux DevTools? I have
    compose(
        rEnhancer()
    ) {
        if (window.asDynamic().__REDUX_DEVTOOLS_EXTENSION__) {
            console.log("__REDUX_DEVTOOLS_EXTENSION__")
            window.asDynamic().__REDUX_DEVTOOLS_EXTENSION__()
        } else {
            it
        }
    }
    But it gives me errors in my app.
    • 1
    • 1
  • a

    Ayfri

    08/05/2021, 6:32 PM
    Hi, what means the error `When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModule I'm just trying to use the annotation
    seskar.js.JsUnion
    ?
    t
    • 2
    • 2
  • a

    Ayfri

    08/06/2021, 4:44 PM
    Hi, I've tried to generate kotlin typings from .d.ts, what are the @nativeInvoke and why on the documentation it's deprecated and it means to
    Use inline extension function with body using dynamic
    but I don't understand what it is
    t
    • 2
    • 3
  • c

    Chilli

    08/08/2021, 4:25 PM
    Trying to make JS run with a custom index.html file in a Multiplatform configuration.
    build.gradle.kts
    :
    plugins {
        kotlin("multiplatform") version "1.5.10"
    }
    
    group = "me.chilli"
    version = "1.0"
    
    repositories {
        mavenCentral()
    }
    
    kotlin {
        // ... [JVM config here]
        js(IR) {
            browser {
                webpackTask {
                    sourceMaps = true
                }
                commonWebpackConfig {
                    cssSupport.enabled = true
                }
            }
        }
    
        // ...
    
        sourceSets {
            // ...
            val jsMain by getting
            // ...
        }
    }
    And then trying to run it using
    gradlew browserDevelopmentRun
    but it gives me:
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Task 'browserDevelopmentRun' not found in root project '...'.
    t
    a
    c
    • 4
    • 26
  • g

    GUIGAL Allan

    08/08/2021, 4:47 PM
    Hey, how do you check the compiled code in Kotlin playground ?
    t
    • 2
    • 4
  • a

    Ayfri

    08/08/2021, 4:58 PM
    Hi, what should the equivalent in Kotlin of this d.ts code :
    class Test {
        readonly a: string
        b: number
    
        c(): typeof Test
    }
    I mean, what
    typeof Test
    should be in Kotlin ? I thought of
    Class<Test>
    but I guess it's not right
    g
    b
    • 3
    • 3
  • s

    shama

    08/10/2021, 4:04 AM
    Hi! Does anyone know how to alias a JS module to a folder within that npm installed module? For example
    implementation(npm("ember-source", "3.12.0"))
    will use the package main
    node_modules/ember-source/lib/index.js
    which is an installer script for Ember CLI but the actual front end libraries are located in
    node_modules/ember-source/dist/
    . Is there a way to have it consider a sub-folder of the module as the module? Or other suggestions? Thanks!
    b
    • 2
    • 2
  • a

    atsushieno

    08/10/2021, 4:50 PM
    Has anyone tried to publish a vscode extension that makes use of Kotlin/JS Legacy? I'm stuck at publishing it with
    npm ERR! missing: @js-joda/core@3.2.0, required by Kotlin-DateTime-library-kotlinx-datetime-js-legacy@0.2.0
    ... any help/hints appreciated.
    • 1
    • 2
  • t

    Tuna

    08/11/2021, 12:00 AM
    Hi! Does anyone know how to add configuration to identify for development build and production build? Something like
    BuildConfig.DEBUG
    on Android
    t
    s
    • 3
    • 5
  • w

    WukongRework.exe

    08/11/2021, 4:32 AM
    hey guys, i was just wondering, are there any good tools online to see the compiled js of kotlin/JS targeting code (that isn't through just compiling an Intellij project) thanks!
    👀 1
    e
    d
    +2
    • 5
    • 7
  • p

    Paul SOUTEYRAT

    08/11/2021, 9:14 PM
    Hi, I was using
    inline
    functions in Kotlin JS, and I saw that they are not really compiled as-is and that
    defineInlineFunction
    is used instead. Therefore, I am wondering, what's the purpose of
    defineInlineFunction
    ? And is there any way to have a real
    inline
    in Kotlin JS (with an annotation for instance) ? PS: I am using the legacy JS compiler, is this behavior different in IR ?
    :kotlin-intensifies: 1
    r
    b
    • 3
    • 11
  • t

    Tristan

    08/12/2021, 1:38 AM
    Hello, I have started a project with IDEA, and just added a dumb class with a test. Debugging does not work with IR but does with LEGACY. Is there anything I should known to make it work?
    t
    t
    • 3
    • 5
  • f

    fkrauthan

    08/12/2021, 4:28 AM
    build.gradle.kts.kt
    t
    • 2
    • 7
  • p

    Pitel

    08/12/2021, 9:11 AM
    https://v4-11-4.material-ui.com/guides/localization/#locale-text what would be the equivalent of getting the
    zhCN
    object in Kotlin? I have this, but it's
    undefined
    .
    @JsModule("@material-ui/core/locale")
    @JsNonModule
    @JsName("zhCN")
    external val locale: dynamic
    b
    t
    • 3
    • 3
  • h

    hfhbd

    08/12/2021, 3:05 PM
    Hey, I have a kotlin JS IR library which use @Big Chungus npm plugin to publish its npm module using JSExport. But unfortunately, we use a class containing a property
    kotlinx.datetime.Instant
    . How do you export
    kotlinx.datetime.Instant
    to create an Instant in typescript?
    b
    • 2
    • 3
  • a

    andylamax

    08/13/2021, 2:11 AM
    I think I found a bug. But asking here first to not report it twice
    println(message: Any?)
    is not working as expected in testing Take the bellow code for example
    println("Start")
    println("End")
    Expected printed output should be
    Start
    End
    Actual printed output
    StartEnd
    However, the code below
    println("Start\n")
    println("End\n")
    Prints
    Start
    End
    Instead of
    Start
    
    End
    Tested on OS: Linux Browser: ChromeBrowser and ChromeHeadless, Kotlin: 1.5.0, 1.5.10, 1.5.20, 1.5.21, 1.5.30-RC Target: JS/IR
    👍 2
    👍🏻 1
    :blob-joy: 2
    :plus1: 3
    c
    • 2
    • 1
  • c

    Christian Hausknecht

    08/13/2021, 3:49 PM
    I have a question concerning the consistency / reliability of DOM API's event types and different browsers. Imagine a simple HTML
    input
    element with a
    datalist
    attached as kind of "type ahead" component. In order to add some logic within an UI framework (I work on the fritz2 framework FYI), one need to register a listener on specific events of course. For this use case I consider the
    input
    event as the best fitting one. According to MDN the event has the interface
    InputEvent
    . But this seems to be false for some circumstances and browsers: If one selects a proposal from the datalist at least in Chrome and Safari Browsers (mobile too) instead a simple
    Event
    event is fired! Here is a small HTML file to make this visible:
    <html>
    
    <body>
        <input id="myinput" type="text" list="mydata">
        <datalist id="mydata">
            <option value="Kotlin"></option>
            <option value="Scala"></option>
            <option value="Java"></option>
            <option value="Python"></option>
            <option value="Commodore Basic V2"></option>
        </datalist>
    
        <script>
            document.getElementById("myinput").oninput = function(e) {
                console.log(Object.getPrototypeOf(e))
            }
        </script>
    </body>
    
    </html>
    In Firefox one always get the
    InputEvent
    no matter if just typing a letter or selecting a proposal from the list. In Chrome or Safari this differs; when selecting from the list, only
    Event
    is fired. This leads to problems in Kotlin of course if one tries to cast this depending on the event name, as
    input
    does not always return the same type as shown above. How to deal with this situation? Is there some kind of specification that reveals the different events for the different browsers? What's the reason for browsers to offer different event types for the same event key? (If someone has interest in the framework specific impacts, have a look at the appropriate PR on github, which will lead to the relevant code sections.)
    😯 1
    i
    • 2
    • 3
  • e

    Erik

    08/13/2021, 5:42 PM
    I'm trying to run the tests in the Kotlin Multiplatform library tutorial: https://kotlinlang.org/docs/multiplatform-library.html#js The JS tests fail with:
    ReferenceError: Buffer is not defined
    I can reproduce it here: https://pl.kotl.in/AklbZ91yN How do I proceed to... • ... solve this issue locally? • ... report this reproducible bug?
    t
    • 2
    • 14
  • t

    Tristan

    08/15/2021, 9:15 PM
    Hello, I am generating the definition for my library, but I release that the dependencies from maven are not included. For instance, I get this kind of return type in my
    d.ts
    file:
    kotlinx.coroutines.flow.SharedFlow<kotlin.collections.List<string>>
    I currently use
    sourceSets {
            all {
                languageSettings.useExperimentalAnnotation("kotlinx.serialization.ExperimentalSerializationApi")
            }
    
            val commonMain by getting {
                dependencies {
                    implementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.2.2")
                    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
                }
            }
            val commonTest by getting {
                dependencies {
                    implementation(kotlin("test"))
                }
            }
            val jsMain by getting
            val jsTest by getting
        }
    How can I include the definitions from kotlin stdlib and coroutines?
    h
    b
    • 3
    • 9
  • t

    Tristan

    08/15/2021, 9:26 PM
    Also, is there a way to not bundle everything and generate the stdlib in a separated file?
    b
    • 2
    • 12
  • a

    andylamax

    08/15/2021, 11:12 PM
    task jsBrowserDevelopmentRun is throwing a weird webpack error. This thing was running a few runs ago
    jsBrowserDevelopmentRun FAILED
    [webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
     - configuration has an unknown property '_assetEmittingWrittenFiles'. These properties are valid:
       object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }
    Help? Kotlin 1.5.10
    t
    g
    +7
    • 10
    • 16
Powered by Linen
Title
a

andylamax

08/15/2021, 11:12 PM
task jsBrowserDevelopmentRun is throwing a weird webpack error. This thing was running a few runs ago
jsBrowserDevelopmentRun FAILED
[webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
 - configuration has an unknown property '_assetEmittingWrittenFiles'. These properties are valid:
   object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }
Help? Kotlin 1.5.10
t

turansky

08/16/2021, 12:52 AM
Do you have custom dev-server configuration scripts?
g

GUIGAL Allan

08/16/2021, 1:13 AM
Same problem here :
t

turansky

08/16/2021, 1:27 AM
I use following versions and have no such problems:
webpack.version = "5.50.0"
webpackCli.version = "4.7.2"                webpackDevServer.version = "4.0.0-rc.0"
Plugin
j

Jeff Davidson

08/16/2021, 3:35 AM
+1, this problem also suddenly started happening in my own independent project
as a workaround, setting "kotlin.js.webpack.major.version=4" in gradle.properties is working for me, at least, but I have no dependencies on webpack 5. Kotlin 1.5.20
🙌 1
j

Jan Weidenhaupt

08/16/2021, 8:35 AM
I got the same error also with Kotlin 1.5.30-RC... @Jeff Davidson Thanks for posting the workaround! Hopefully this get fixed soon 🙂 @turansky By default the
jsRun
task downloads the webpack version
5.38.1
and webpack-cli version
4.7.1
in my project when using Kotlin
1.5.30-RC
which i can see in the node_modules folder. Is there are way to update this versions?
i

Ilya Kalibrov [JB]

08/16/2021, 8:55 AM
@andylamax Could you, please, fill the issue in our YouTrack and attach a sample project, so we could reproduce the issue Or is it the same problem as described here ? https://youtrack.jetbrains.com/issue/KT-48273
o

Oleksandr Karpovich [JB]

08/16/2021, 9:03 AM
@Ilya Kalibrov [JB] it's the same problem as KT-48273
:tnx: 1
i

Ilya Kalibrov [JB]

08/16/2021, 9:16 AM
JFYI: this issue seems obsolete for new IR BE. If you have reproduced it with IR, please, let me know
p

Pitel

08/16/2021, 9:27 AM
@Ilya Kalibrov [JB] I'm using IR, and I have this issue since today.
:tnx: 1
☝️ 1
a

andylamax

08/16/2021, 12:21 PM
Tried setting
kotlin.js.webpack.major.version=4
in gradle.properties And now I am getting
Execution failed for task jsBrowserDevelopmentRun
> ✖ 「wds」: webpack Dev Server Invalid Options
  
  options should NOT have additional properties
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin::class.java) {
    rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().versions.webpackDevServer.version =
        "4.0.0-rc.0"
}
worked for me
👍 2
r

Robert Jaros

08/16/2021, 2:51 PM
Related issue: https://github.com/webpack/webpack-cli/issues/2894
c

CLOVIS

08/16/2021, 6:43 PM
Thanks a lot to everyone in this thread, I was becoming crazy trying to understand it :/
g

GUIGAL Allan

08/16/2021, 9:37 PM
Thanks your code worked for me @andylamax 🙌
View count: 15