Your code and blog post has been a huge help for me in setting up firebase auth for my own project, so thank you so much! However, I’m borrowing aspects from yours as well as from the source code of the deg/re-frame-firebase library, and am having trouble with compiling using default compiler optimizations :advanced
. It apparently removes too much of the js code so that I get messages like Cannot read property 'getIdToken' of null
because firebase doesn’t initialize properly. Works fine fith :simple
optimizations, and I’ve tried adding ^js
hints in the same places as your code does, which helped with a few of the errors but not all.
Any suggestions what I could try?
More specifically, it actually seems to initialize firebase, but fails to initialize the google sign-in constructor. firebase.auth.Xx is not a constructor
Following the directions at https://shadow-cljs.github.io/docs/UsersGuide.html#externs I just tried creating an externs/app.txt file and added a single line with the word GoogleAuthProvider
and that seems to have done the trick! Now that constructor keeps its name instead of being renamed to Xx
.
I still don’t know why that specific name couldn’t be auto-inferred, but the solution/workaround is so simple that I can live with it:)
snyk is running their annual JVM survey again - please complete if you use Clojure! https://snyk.io/blog/java-ecosystem-survey-2021/
6✔️I'd love to watch a talk from someone who uses Notepad, I bet they have some sort of real streamlined workflow. :grinning_face_with_one_large_and_one_small_eye:
I suppose you can do it in vim and then copy it to notepad.
1😂There's an APL dialect called co-dfns, the creator uses notepad 😱 You can see him in action here https://www.youtube.com/watch?v=gcUWTa16Jc0
shoulda used microsoft word
or excel, which now supports lambdas
Done! For "What build tools do you use?" I put "Clojure CLI" 🙂
1➕I put "clojure" :)
Framework? Nah!