Issue
This is probably user error on my part (i'm unfamiliar with nodejs so just fumbling my way around).
I get the below when I follow the instructions on https://github.com/urish/firebase-server and https://firebase.googleblog.com/2015/04/end-to-end-testing-with-firebase-server_16.html
when I run firebase-server.cmd -p 5555 -v
I am running this so I can unit-test.
TypeError: this.Firebase.goOffline is not a function
at Object.FirebaseServer ([...]\AppData\Roaming\npm\node_modules\firebase-server\index.js:50:16)
at Object.<anonymous> ([...]\AppData\Roaming\npm\node_modules\firebase-server\bin\firebase-server.js:21:2)
at after ([...]\AppData\Roaming\npm\node_modules\firebase-server\node_modules\cli\cli.js:1057:18)
at Object.cli.main ([...]\AppData\Roaming\npm\node_modules\firebase-server\node_modules\cli\cli.js:1062:9)
at Object.<anonymous> ([...]\AppData\Roaming\npm\node_modules\firebase-server\bin\firebase-server.js:14:5)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
Solution
Seems like you have the new version of the Firebase client library, which has some breaking API changes. Until firebase-server is updated to support the new client library API, you should be able to work around this issue by explicitly installing the older client library version:
npm install --save-dev [email protected]
Good luck with your project!
Answered By - urish
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.