andylamax
08/15/2021, 11:12 PMjsBrowserDevelopmentRun 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.10turansky
08/16/2021, 12:52 AMGUIGAL Allan
08/16/2021, 1:13 AMturansky
08/16/2021, 1:27 AMwebpack.version = "5.50.0"
webpackCli.version = "4.7.2" webpackDevServer.version = "4.0.0-rc.0"
turansky
08/16/2021, 1:28 AMJeff Davidson
08/16/2021, 3:35 AMJeff Davidson
08/16/2021, 3:38 AMJan Weidenhaupt
08/16/2021, 8:35 AMjsRun
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?Ilya Kalibrov [JB]
08/16/2021, 8:55 AMOleksandr Karpovich [JB]
08/16/2021, 9:03 AMIlya Kalibrov [JB]
08/16/2021, 9:16 AMPitel
08/16/2021, 9:27 AMandylamax
08/16/2021, 12:21 PMkotlin.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
andylamax
08/16/2021, 12:40 PMrootProject.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 meRobert Jaros
08/16/2021, 2:51 PMCLOVIS
08/16/2021, 6:43 PMGUIGAL Allan
08/16/2021, 9:37 PM