cinqmarsmedia / Copy-Editor-A-RegEx-Puzzle-Game

GNU General Public License v3.0
4 stars 1 forks source link

Firebase DB problem on startup #13

Open MadPigeon opened 1 month ago

MadPigeon commented 1 month ago

TL;DR

npm start doesn't start a game but opens a broken page that complains about parsing firebase DB url

What I did

  1. Followed the instructions in Readme, then created firebase project and realtime database in it.
  2. Got a realtime database URL. The URL it gave me did not end in .firebaseio.com, but instead it ended with .firebasedatabase.app.
  3. Changed fbConfig in constants.ts including the https://<unique_url>.firebasedatabase.app
  4. npm start
  5. Opened a page in browser

I'm using:

Error text

Error: Uncaught (in promise): Error: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com 
Error: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com 
    at fatal (http://localhost:8100/build/vendor.js:186235:11)
    at parseRepoInfo (http://localhost:8100/build/vendor.js:187161:9)
    at RepoManager.databaseFromApp (http://localhost:8100/build/vendor.js:200948:25)
    at instance.INTERNAL.registerService.Reference [as database] (http://localhost:8100/build/vendor.js:201293:130)
    at FirebaseAppImpl._getService (http://localhost:8100/build/vendor.js:122121:66)
    at firebaseAppImpl.<computed> [as database] (http://localhost:8100/build/vendor.js:122326:31)
    at http://localhost:8100/build/vendor.js:124219:24
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
    at r.run (http://localhost:8100/build/polyfills.js:3:10143)
    at NgZone.runOutsideAngular (http://localhost:8100/build/vendor.js:5033:69)
    at c (http://localhost:8100/build/polyfills.js:3:19752)
    at Object.reject (http://localhost:8100/build/polyfills.js:3:19174)
    at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:59974:16)
    at NavControllerBase._failed (http://localhost:8100/build/vendor.js:59967:14)
    at http://localhost:8100/build/vendor.js:60014:59
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
    at Object.onInvoke (http://localhost:8100/build/vendor.js:5085:33)
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
    at r.run (http://localhost:8100/build/polyfills.js:3:10143)
    at http://localhost:8100/build/polyfills.js:3:20242