# ReferenceError: getCachedJsObject is not defined

**URL:** <https://discuss.kotlinlang.org/t/referenceerror-getcachedjsobject-is-not-defined/29221>\
**Category:** WebAssembly\
**Created:** [September 11, 2024, 11:06am UTC](https://discuss.kotlinlang.org/t/referenceerror-getcachedjsobject-is-not-defined/29221 "2024-09-11T11:06:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![basurahan](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@basurahan](https://discuss.kotlinlang.org/u/basurahan)\
**Post date:** [September 11, 2024, 11:06am UTC](https://discuss.kotlinlang.org/t/referenceerror-getcachedjsobject-is-not-defined/29221/1 "2024-09-11T11:06:04Z")

</div>

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

```auto
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](https://github.com/basurahan/Reddit-Lite)

---

<div class="post-metadata">

**Author:** ![bashor](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bashor/32/1431_2.png) [@bashor](https://discuss.kotlinlang.org/u/bashor)\
**Post date:** [November 19, 2024, 8:30pm UTC](https://discuss.kotlinlang.org/t/referenceerror-getcachedjsobject-is-not-defined/29221/2 "2024-11-19T20:30:34Z")

</div>

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