Module 'firebase' is not available Help!

I have been working with ionic + firebase, everything was working well in serve and android, but ultimately doesn’t work on android, the error is:


This error came when I started to use a repository.
I don’t understand what happened.

Nota: I am using cdn to firebase and angularFire

Had the same error, try to reoganize the order you import the scripts in your index.html.

try this sequence

<script src=''></script>    
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src=""></script>    
<script src="cordova.js"></script>

EDIT: Avoid use the URL to firebase site , download the js file and put in you lib folder.