Open timothypratley opened 7 years ago
As an additional clue, removing firebase-server-auth-externs from the :externs list in deps.cljs doesn't help, but removing the file altogether does (though clearly this is not the right thing to do)... which suggests that the problem occurs when 2 ext.js files define the same root object???
Aaaaaand now everything is working fine when I put them all back in a jar. Sorry I guess I don't understand what is going on at all
Aha, after restarting IntelliJ things are back to not recognizing GoogleAuthProvider again. phew!
When a CLJS package contains multiple externs, not all of them are used e.g. [cljsjs/firebase "3.2.0-0"] https://github.com/timothypratley/voterx in voterx.firebase
js/firebase.auth is recognized, but not js/firebase.auth.GoogleAuthProvider.
GoogleAuthProvider comes from
node_modules/firebase/externs/firebase-auth-externs.js
, which seems to not be loaded by Cursive despite being in the deps.cljs :externs list But js/firebase.auth is fine, which comes fromcljsjs/common/firebase-server-auth-externs.ext.js