admin管理员组

文章数量:1415709


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

Share Improve this question asked Aug 24, 2013 at 23:51 Jared TomaszewskiJared Tomaszewski 8034 gold badges19 silver badges31 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

You 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:

本文标签: javascriptfirebasejs (Firebase js API) not recognized in WebstormStack Overflow