Joffrey
05/24/2022, 6:31 PMThere are multiple versions of "ktor-ktor-client-core-js-legacy" used in nodejs build: 1.6.8, 2.0.0. Only latest version will be used.I have 2 independent multiplatform submodules to support Ktor 1 and Ktor 2. They are never used together. When running js tests for the module using Ktor 1.6.8, I have runtime errors because it is in fact using Ktor 2 during tests. I noticed the
build/js/packages/<module-name>/package.json
doesn't contain any dependencies, and in fact all dependencies of all subprojects are mixed together in build/js/package.json
as "workspaces", excluding collisions (so Ktor 1 is not there). Is this normal? Is there a way to change that?Joffrey
05/24/2022, 6:37 PMbuild/js/packages
and the absence of dependencies in the corresponding package.json
for each subproject/sourceset, I'm assuming a similar problem happens with multiple source sets that have different sets of dependencies. This is a big problem as well for me 😕Joffrey
05/24/2022, 6:45 PMBOTH
backends, but I reproduce with legacy (alone) as well. Didn't try with IR alone, but I'm assuming it's the same thing.ephemient
05/24/2022, 7:36 PMJoffrey
05/24/2022, 7:45 PM