Search code examples
angularjsfirebasefirebase-hosting

Unknown provider with AngularJS app on firebase hosting


I've developed app (using code4startup tutorial), written on angularjs + bootstrap + firebase database and decided to host it on firebase. I've done firebase init and firebase deploy... I got a link https://sportpredictions.firebaseapp.com/#/, but nothing from angularjs doesn't work. Console gives me mistakes like: Unknown provider: AuthProvider <- Auth <- NavController and AuthProvider <- Auth <- Prediction <- NavController But on localhost everything is fine. Maybe someone can help me to solve this problem, because I have already no idea what to do :(


Solution

  • You reference your AuthController file as auth.js (lower case a) in index.html but the file is Auth.js (upper case A)