firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Cannot access functions under JS

Open thejoeba opened this issue 4 years ago • 0 comments
trafficstars

In my JS project if I try to use .js to access the underlying SDK, I get an error from the compiler.

Cannot access class 'dev.gitlive.firebase.firebase.database.Reference'. Check your module classpath for missing or conflicting dependencies

example:

actual suspend fun DatabaseReference.safeSetValue(any: Any) {
    js.set(any)
}

This is caused by setValue causing an error in the transpiled JS, for which I will open a separate issue.

thejoeba avatar Oct 18 '21 18:10 thejoeba