ReferenceError: getCachedJsObject is not defined

Hi I am working on a Kotlin Multiplatform project. Android, iOS, JVM is working fine but Web (WasmJS) is not working.

I am getting this error whenver i run the compose WASM target

getCachedJsObject is not defined
ReferenceError: getCachedJsObject is not defined
    at kotlin.wasm.internal.getCachedJsObject_$external_fun (webpack-internal:///./kotlin/composeApp.uninstantiated.mjs:119:78)
    at <RedditLite:composeApp>.kotlin.wasm.internal.getCachedJsObject_$external_fun__externalAdapter (http://localhost:8080/composeApp.wasm:wasm-function[11708]:0x26750f)
    at <RedditLite:composeApp>.kotlin.wasm.internal.externRefToAny (http://localhost:8080/composeApp.wasm:wasm-function[11670]:0x267288)
    at <RedditLite:composeApp>.kotlin.wasm.internal.jsToKotlinAnyAdapter (http://localhost:8080/composeApp.wasm:wasm-function[11669]:0x26725b)
    at <RedditLite:composeApp>.androidx.compose.ui.window.ComposeViewport (http://localhost:8080/composeApp.wasm:wasm-function[40028]:0x4b1a3b)
    at <RedditLite:composeApp>.link.limecode.reddit.lite.main (http://localhost:8080/composeApp.wasm:wasm-function[47705]:0x541688)
    at <RedditLite:composeApp>.kotlin.wasm.internal.mainCallsWrapper (http://localhost:8080/composeApp.wasm:wasm-function[47717]:0x54541d)
    at <RedditLite:composeApp>._initialize (http://localhost:8080/composeApp.wasm:wasm-function[47718]:0x545429)
    at instantiate (webpack-internal:///./kotlin/composeApp.uninstantiated.mjs:4475:21)
    at async eval (webpack-internal:///./kotlin/composeApp.mjs:16:18)

Here is the repository of my project can you help me out thanks GitHub - basurahan/Reddit-Lite: Kotlin multiplatform showcase

1 Like

H! Please try clean build. If it doesn’t help please file an issue https://kotl.in/issue