- KLIB resolver: The same 'unique_name=kotlin' fou...
# supabase-kt
u
• KLIB resolver: The same 'unique_name=kotlin' found in more than one library: /home/georgekarlreal/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-wasm-js/2.1.0-RC2/b819abdd4a7ec8a2e2b88734463d52d2691c8ebb/kotlin-stdlib-wasm-js-2.1.0-RC2.klib, /home/georgekarlreal/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-wasm/1.9.0/ec6525e2b8f7cf4f4fe62db24012ec26d0803ea/kotlin-stdlib-wasm-1.9.0.klib how to fix this, I tried in wasm but this is error
j
Did you try deleting the Gradle caches & running
./gradlew clean
?
u
it doesn't work, I use latest compose plugin and kotlin verson
j
Which Gradle version? And try Kotlin 2.0.21.
u
Kotlin 2.0.21 - it doesn't work, it errors - WasmGC timout - And I want to use latest because the performance are improved. Does it work to you? or it just my computer because I change a lot of versions. I'm making sure, I use the latest verson
j
and the Gradle version?
Also this is not a supabase-kt issue, so you will probably get better help in #C19FD9681
u
8.5.2
j
That is rather old, I'd update Gradle to the latest version otherwise ask in #C19FD9681
u
I already use the latest support yet doesn't work. What should I do?
f
I’m having the same issue..
Copy code
KLIB resolver: The same 'unique_name=kotlin' found in more than one library: 

/Users/frankbouwens/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-wasm-js/2.1.0/b96271506fb37f4d8d1c63db7a57384ab16ae218/kotlin-stdlib-wasm-js-2.1.0.klib,

/Users/frankbouwens/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-wasm/1.9.0/ec6525e2b8f7cf4f4fe62db24012ec26d0803ea/kotlin-stdlib-wasm-1.9.0.klib
j
Currently in the process of updating supabase-kt to Kotlin 2.1.0, but facing two other compiler issues. I assume a dependency supabase-kt is using, is producing those errors (for Kotlin 2.1.0 and wasm-js). Investigating it, but I cannot say what the issue is. Anything lower Kotlin 2.1.0 will work
All targets except wasm-js work fine.
Will publish a version, if I find a fix.
f
Thanks for the hint! Lowering kotlin version from 2.1.0 to 2.0.20 fixed the issue for now 😄
💯 1
Copy code
> Task :composeApp:compileProductionExecutableKotlinWasmJs
w: KLIB resolver: The same 'unique_name=kotlin' found in more than one library: /Users/frankbouwens/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-wasm-js/2.0.21/ff426b6616aa0b435eef409b48c996b283209a36/kotlin-stdlib-wasm-js-2.0.21.klib, 

/Users/frankbouwens/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-wasm/1.9.0/ec6525e2b8f7cf4f4fe62db24012ec26d0803ea/kotlin-stdlib-wasm-1.9.0.klib
It seems on lower than 2.1.0, this issue also exists, but as a Warning instead of an Error 🤔
j
Found the culprit, publishing a fix.
@Ume Channel this should also fix your issue.
💯 1
f
Awesome! Thanks Jan! 🎉
j
Released 3.0.3, let me know if this works!
💯 1
f
Yes! This works!
161 Views