Hi there has anyone met with this `kotlin-css` bu...
# react
a
Hi there has anyone met with this
kotlin-css
bug from kotlin wrappers?
Copy code
The symbol of unexpected type encountered during IR deserialization: IrClassPublicSymbolImpl, kotlinx.css/CssDeclarations|null[0]. IrTypeAliasSymbol is expected.

This could happen if there are two libraries, where one library was compiled against the different version of the other library than the one currently used in the project. Please check that the project configuration is correct and has consistent versions of dependencies.

The list of libraries that depend on "org.jetbrains.kotlin-wrappers:kotlin-css" and may lead to conflicts:
 1. "com.picortex:bitframe-events-react" (depends on the library with unknown version: "org.jetbrains.kotlin-wrappers:kotlin-css")
 2. "com.picortex:bitframe-sdk-client-react" (depends on the library with unknown version: "org.jetbrains.kotlin-wrappers:kotlin-css")
. . .
That list goes on. Dependency graphs in thread
A portion of my jsRuntimeClasspath configuration graph as reported by gradle looks like this
Copy code
|    |    +--- tz.co.asoft:kotlinx-browser:1.4.50
|    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt (*)
|    |    |    +--- org.jetbrains.kotlinx:kotlinx-html:0.7.3
|    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-html-js:0.7.3 (*)
|    |    |    +--- org.jetbrains.kotlin-wrappers:kotlin-extensions:1.0.1-pre.240-kotlin-1.5.30 -> 1.0.1-pre.289-kotlin-1.6.10 (*)
|    |    |    +--- org.jetbrains.kotlin-wrappers:kotlin-css:1.0.0-pre.240-kotlin-1.5.30 -> 1.0.0-pre.289-kotlin-1.6.10 (*)
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-js:1.6.10
|    |    +--- org.jetbrains.kotlin-wrappers:kotlin-css:1.0.0-pre.289-kotlin-1.6.10 (*)
A portion of my dependency graph as reported by the kotlin compiler looks like this
Copy code
|    |    +--- stdlib:viewmodel-react (*)
|    |    +--- org.jetbrains.kotlin-wrappers:kotlin-css (*)
|    |    |    ^^^ This module contains symbol kotlinx.css/CssDeclarations|null[0] that is the cause of the conflict.
|    |    +--- org.jetbrains.kotlin-wrappers:kotlin-csstype (*)
|    |    +--- org.jetbrains.kotlin-wrappers:kotlin-extensions (*)
What seems to be the problem here?
switching to strict versions doesn't seem to help as well
Copy code
\--- org.jetbrains.kotlin-wrappers:kotlin-css:{strictly 1.0.0-pre.289-kotlin-1.6.10} -> 1.0.0-pre.289-kotlin-1.6.10 (*)
@turansky?? Help please . . .
t
It's sealed interface bug in IR
Works fine in legacy :)
a
Any known workarounds?? I am using IR
Also, is there a ticket?
t
Any known workarounds??
1.6.20-dev
(unsafe)
Update:
CssDeclarations
- class, it looks like another problem
Do you have synchronized versions in your libraries?
1.0.0-pre.240-kotlin-1.5.30
- how?
Why it isn’t latest?
a
looks like I have a transitive dependency pulling in
1.0.0-pre.240-kotlin-1.5.30
but gradle resolves it to
1.0.0-pre.289-kotlin-1.6.10
. I doubt even if I update the transitive dependency the problem would not be solved. But I shall give it a try
t
Looks like now it works 🙂
a
Just confirmed today. It works now 😃