After upgrade to 0.11.1 I have problems resolving ...
# serialization
r
After upgrade to 0.11.1 I have problems resolving
kotlinx-serialization-runtime-js
module. I've noticed the
kotlinx-serialization-runtime-js-0.11.1.jar
contains
kotlinx-serialization-kotlinx-serialization-runtime.js
file and the previous
kotlinx-serialization-runtime-js-0.11.0.jar
contains
kotlinx-serialization-runtime.js
file. Is it intentional or is it a bug?
s
I'm not sure that this renaming should affect anything. What do you mean by "`kotlinx-serialization-runtime-js` module"? Your client code can't resolve JS-specific parts of the library?
r
Copy code
ERROR in ../node_modules_imported/kotlin-redux/kotlin-redux.js
Module not found: Error: Can't resolve 'kotlinx-serialization-runtime-js' in '/home/rjaros/git/kvision/kvision-modules/kvision-redux/build/node_modules_imported/kotlin-redux'
 @ ../node_modules_imported/kotlin-redux/kotlin-redux.js 143:85-128
 @ ./kvision-redux.js
It's a module using kotlin-redux wrapper.
I'm using new
4.0.0-pre.72-kotlin-1.3.40
version.
I've managed to reproduce the problem with this https://github.com/lawik123/kotlin-poc-frontend-react-redux project (official example?) after upgrading to 1.3.40 and serialization 0.11.1.
Copy code
ERROR in ./kotlin-redux.js
Module not found: Error: Can't resolve 'kotlinx-serialization-runtime-js' in '/home/rjaros/git/github/kotlin-poc-frontend-react-redux/build/kotlin-js-min/main'
 @ ./kotlin-redux.js 72:85-128
 @ ./kotlin-poc-frontend-react-redux.js
Maybe
kotlin-wrappers
project should be rebuild with 0.11.1? Currently it's using 0.11.0. https://github.com/JetBrains/kotlin-wrappers/blob/master/versions.gradle
Hello, any thoughts on this problem? Should I fill an issue for kotlinx.serialization?
s
Yes, please fill one, I'll take a look at it
r
b
if you're using mpp, try using kotlinx-serialization-runtime-native, which has the gradle module metadata for native/mpp projects. the module metadata file has refernces to the js-api and js-runtime modules, which gradle should resolve