I am using (testing) Webstorm 7 EAP for development. I downloaded the
.js
to be able to have code pletion and JSDocs for Firebase.
To my disappointment not only do I not jet the JSDocs (the firebase.js appears to be minified), but webstorm can't even see the Firebase API at all.
When I type:
var fbase = new Firebase(...)
Webstorms warns "Unresolved type Firebase".
How can I get Webstotm to play with Firebase nicely?
I get a feeling that my problem is due to firebase.js being minified.
Is there somewhere a version of firebase.js that is not minified and with JSDocs? Would help a lot.
BTW Oddly enough, Webstorm 7 can see angularFire.js just fine.
regards
Jared
I am using (testing) Webstorm 7 EAP for development. I downloaded the
https://cdn.firebase./v0/firebase.js
to be able to have code pletion and JSDocs for Firebase.
To my disappointment not only do I not jet the JSDocs (the firebase.js appears to be minified), but webstorm can't even see the Firebase API at all.
When I type:
var fbase = new Firebase(...)
Webstorms warns "Unresolved type Firebase".
How can I get Webstotm to play with Firebase nicely?
I get a feeling that my problem is due to firebase.js being minified.
Is there somewhere a version of firebase.js that is not minified and with JSDocs? Would help a lot.
BTW Oddly enough, Webstorm 7 can see angularFire.js just fine.
regards
Jared
1 Answer
Reset to default 8You can use the unminified version of Firebase for development. Also, if WS is still fussy you can try a couple different things.
Find the reference to Firebase in your code and click on it, click the light bulb, choose download library:
Add Firebase-debug to your JS Libs under Project Settings -> JavaScript -> Libraries. You'll have to download the -debug version first, then make sure you've checked it for inclusion in the project: