Revisiting getting my multi-platform working with ...
# javascript
t
Revisiting getting my multi-platform working with JS target again, and I am getting this after including Ktor JS:
Copy code
Couldn't find package "abort-controller@3.0.0" required by "ktor-ktor-client-core-js-ir@1.6.8" on the "npm" registry.
Anybody know how to fix this? There are a number of other bits missing too (ws, webpack, @js-joda/core)
b
Switch to IR backend
t
Untitled.txt
I think I am using that. Here is my gradle.kts file.
b
The default is still legacy.
Also that's just applies the plugin, not switches backend
Add
kotlin.js.compiler=ir
to your
gradle.properties
file
t
Same thing. 😞
Okay, I changed the containing project to use the js plugin, and set the kotlin.js.compiler setting in the multiplatform lib i am including, and that appears to have fixed it. Thank you for the assist.
Okay, gradle sync is good now, but when i go to build, same issue. i hate gradle. 😕