最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - firebase.js (Firebase js API) not recognized in Webstorm - Stack Overflow

programmeradmin2浏览0评论


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:

发布评论

评论列表(0)

  1. 暂无评论