I am trying to install and use the Polymerfire <firebase-auth>
element. But, apparently, I have not successfully installed all the dependencies like firebase-sdk, for example.
I tried using Bower command pattern used to install the other Polymer elements:
command linebower install --save polymerfire/firebase-auth
but, apparently, Polymerfire might not be setup for Bower and I received the following error.
fatal: remote error:
Repository not found.
As it stands now, I have the following dependencies listed in the Polymerfire bower.json file:
bower.json...
"dependencies": {
"polymer": "Polymer/polymer#^1.2.0",
"firebase-sdk": "https://www.gstatic.com/firebasejs/3.0.0/firebase.js",
"app-storage": "polymerelements/app-storage#~0.9.0"
},
...
But I do not, I repeat, I do not, have any firebase-sdk directory in my project's bower_components directory.
Please help me unravel this and correctly install all the necessary dependencies for Polymerfire (including firebase-sdk) into my Polymer project.
When I do the following command:
command linebower install --save polymerfire
It appears to work. However, when I check my bower_components directory, I still do not see any firebase-sdk subdirectory and I still get the same console error. Click here to see another question dealing with this error in more detail.
console.logfirebase-app.html:94
Uncaught ReferenceError: firebase is not defined
bower install --save firebase/polymerfire
Note: bower install --save polymerfire
points to DivShot's version which is now outdated.