functions-samples: Isomorphic React App@AdminSDK: ERROR in ../functions/~/firebase-admin/lib/auth/credential.j
Hi!
Due to
const firebase = global.firebase || require('firebase');
deprecated, impossible tie new Firebase Admin SDK by reason of webpack errors:
ERROR in ../functions/~/firebase-admin/lib/auth/credential.js
Module not found: Error: Can't resolve 'fs' in '/home/valaoffice/projects/dst-iso/functions/node_modules/firebase-admin/lib/auth'
ERROR in ../functions/~/faye-websocket/lib/faye/websocket/client.js
Module not found: Error: Can't resolve 'net'
and so on. Please give correct webpack.config
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (7 by maintainers)
Don’t upgrade to firebase-admin. Switch back to firebase. The code is supposed to run on the client and firebase-admin does not work on a web page.
Here are a few differences: