fareedpatel / steam_app

0 stars 1 forks source link

I am having difficulty fixing the authentication. #4

Open fareedpatel opened 7 years ago

fareedpatel commented 7 years ago

It's giving this weird error which I'm finding hard to solve.

Failed to instantiate module schedulingList due to: Error: State ''' is already defined at registerState (http://localhost:8100/lib/ionic/js/ionic.bundle.js:51235:44) at $StateProvider.state

gujiman commented 7 years ago

1) open your console in chrome 2) expand the error by clicking on (...) 3) you will get a list of files as a history of how the error propagated (stack) 4) locate '/www/js/app.js:115:2' 5) click on it 6) it should take you directly to the error:

.state ('', { url: "/scheduling", abstract: true, templateUrl: "templates/scheduling.html" })

7) open file '/www/js/app.js' 8) goto line 115 and change the code to:

.state ('scheduling', { url: "/scheduling", abstract: true, templateUrl: "templates/scheduling.html" })

9) save it, run it, now fix the next error exactly the same way


10) i'm not sure but i think you need to comment it out:

// .state ('scheduling', { // url: "/scheduling", // abstract: true, // templateUrl: "templates/scheduling.html" // })

and rename 'scheduling.html' to 'scheduling-list.html' in 'steam_app\www\templates'

fareedpatel commented 7 years ago

So after having fixed that bug. I now realise that the authentication will still not work as we firebase 1.1.0 is now deprecated and we have to update to AngularFire 2.x.x.

I will be using this guide to help me with the migration.

https://github.com/firebase/angularfire/blob/master/docs/migration/1XX-to-2XX.md