andylamax
04/04/2022, 9:00 PMTask :jsBrowserTest
java.lang.IllegalStateException: command '/home/runner/.gradle/nodejs/node-v16.13.0-linux-x64/bin/node' exited with errors (exit code: 134)
After bumping to 1.6.20?
I am getting this on CI and my machine as wellturansky
04/04/2022, 10:16 PM16.14.2
andylamax
04/04/2022, 10:32 PMbuild.gradle.kts
how do I use the inbuilt version?andylamax
04/04/2022, 10:33 PMandylamax
04/05/2022, 5:33 AMjsNodeTest
has no problems executing at allandylamax
04/05/2022, 6:56 AMandylamax
04/05/2022, 7:08 AMjsBrowserTest
is trying to load .kt
files. Which fails the build as webpack doesn't have a loader to process this kind of files.
I am getting a bunch of errors like this in the console
Module parse failed: Invalid regular expression flag (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
> /mnt/agent/work/8d547b974a7be21f/ktor-client/ktor-client-core/common/src/io/ktor/client/call/HttpClientCall.kt
It gets even worse, coz now webpack is trying to load build.gradle.kts
files
Module parse failed: Unexpected token (1:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
> plugins {
| kotlin("js")
| kotlin("plugin.serialization")
What is even more interesting, this doesn't happen at all when testing for the node environment, only browser.
For those who have bumped to 1.6.20, how do you run your browser tests??Robert Jaros
04/05/2022, 7:16 AMRobert Jaros
04/05/2022, 7:17 AMandylamax
04/05/2022, 7:25 AMandylamax
04/05/2022, 7:30 AMRobert Jaros
04/05/2022, 7:33 AM/mnt/agent/work/8d547b974a7be21f/ktor-client/ktor-client-core/common/src/io/ktor/client/call/HttpClientCall.kt
. Is this your project directory here?andylamax
04/05/2022, 7:37 AMandylamax
04/06/2022, 3:56 PM<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>=false
makes my builds pass.
Hypothesis is, having incremental compilation with dependencies compiled with earlier versions might be the ones causing the error. I have tried publishing my dependencies but now maven central has issues, so I'll have to wait to have a conclusion on this hypothesisandylamax
04/07/2022, 1:05 AM