googlearchive / angularfire-seed

Seed project for AngularFire apps
http://angularfire.com
MIT License
410 stars 191 forks source link

Please configure app/js/config.js before running! always show #75

Closed newaeonweb closed 9 years ago

newaeonweb commented 9 years ago

Even configuring the Instance reference to Firebase, the warning still showing

katowulf commented 9 years ago

Please provide concise details about the problem and your configuration. Cheers.

GhislainG commented 9 years ago

I have the same issue, but when I remove : // double check that the app has been configured before running it and blowing up space and time .run(['FBURL', '$timeout', function(FBURL, $timeout) { if( FBURL.match('//INSTANCE.firebaseio.com') ) { angular.element(document.body).html('

Please configure app/js/config.js before running!

'); $timeout(function() { angular.element(document.body).removeClass('hide'); }, 250); } }]);

from config.js, it works perfectly.

katowulf commented 9 years ago

It would be hard to come to the conclusion that this is the same issue simply because you receive the same error message.

If you are receiving that error, and removing the check fixes the error, then your FBURL is incorrectly set to INSTANCE.friebaseio.com. This would indicate that things will not work perfectly (which is why the check exists).

If the check is incorrect, then actual data indicating which URL it can't parse, and troubleshooting that helps explain the bug would be appropriate here.