完整错误 错误:[$ injector:unpr]未知提供者:FIREBASE_URLProvider< - FIREBASE_URL< - 帖子
本地服务器在几天前就开始运行一个正在运行的应用程序。现在,当我启动它时,应用程序是空白的,并抛出此错误。有谁知道这个问题?
我在线上课,也许这些版本已经过时了?
错误链接指向此页面。 ERROR LINK PAGE IN ANGULARJS但我的定义是好的,因为他们以前工作过吗?
附件是我的index.html脚本。
<!-- build:js scripts/vendor.js -->
<!-- <script src="vendor/someContribJs.js"></script> -->
<!-- bower:js -->
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
<script src="bower_components/ionic/release/js/ionic.js"></script>
<script src="bower_components/ionic/release/js/ionic-angular.js"></script>
<script src="bower_components/lodash/dist/lodash.compat.js"></script>
<script src="bower_components/firebase/firebase.js"></script>
<script src="bower_components/firebase-simple-login/firebase-simple-login.js"></script>
<script src="bower_components/angularfire/angularfire.js"></script>
<!-- endbower -->
<!-- endbuild -->
<!-- build:js({.tmp,app}) scripts/scripts.js -->
<!--all the scripts for the app -->
<!-- endbuild -->
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
答案 0 :(得分:0)
这只是一个疯狂的猜测,但尝试将angularfire.js脚本放在firebase-simple-login.js之前
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
<script src="bower_components/ionic/release/js/ionic.js"></script>
<script src="bower_components/ionic/release/js/ionic-angular.js"></script>
<script src="bower_components/lodash/dist/lodash.compat.js"></script>
<script src="bower_components/firebase/firebase.js"></script>
<script src="bower_components/angularfire/angularfire.js"></script>
<script src="bower_components/firebase-simple-login/firebase-simple-login.js"></script>
另一个猜测是检查是否缺少有关firebase网址的配置。
答案 1 :(得分:0)
我解决了。
我在app.js代码的某处隐藏了另一个Var X = angular.module(myapp,[])行。 不知道它是如何到达那里但删除它的伎俩。所以错误信息是正确的。