Hello, how do I use firebase.js in a WasmJS target...
# multiplatform
g
Hello, how do I use firebase.js in a WasmJS target? I'd like to do the following:
Copy code
import { initializeApp } from 'firebase/app';

// TODO: Replace the following with your app's Firebase configuration
const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);
In other words, does someone have a KMP project with a WASM target that uses Javascript interoperability to interact with a node.js package? Thanks 馃檹
u
it's for a browser target or a node server target ?
g
Browser target
u
maybe check this : https://klibs.io/project/GitLiveApp/firebase-kotlin-sdk it's for js but it's fondamentaly the same process
g
When I tried, I was missing APIs like
kotlin.js.json
and many others, so it is really missing as std lib for WasmJS or did I miss something?
u
in wasmjs you have to use org.jetbrains.kotlinx:kotlinx-browser-wasm-js
g
Ohhhh, I'll check 馃槉
馃憤 1