I have another question, if someone can point me t...
# javascript
j
I have another question, if someone can point me the right direction that’d be amazing. In a basic kotlin js project, I imported the firebase dependency. Used Dukat to get access to the type references and juggled around to get them to compile. My kotlin compiles like a charm, however it seems to me like the bundle created by webpack does not contain the firebase library in the end. I am facing a
Uncaught ReferenceError: firebase is not defined
error in the frontend. My client is available here : https://github.com/jlengrand/kotlin-samples/blob/main/sample-firebase/src/main/kotlin/Client.kt. You can reproduce by running
./gradlew run
in the sample-firebase module
I have tried quite a few things, including changing the packages generated by Dukat to match the kotlin package, and trying to import firebase directly from within the client. I know imports work because
sorted
gets imported fine. The error also happens before the javascript is ran so it looks like an import issue of the bundle at runtime.
Any pointers as to what can be happening? Thanks!