question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Isomorphic React App@AdminSDK: ERROR in ../functions/~/firebase-admin/lib/auth/credential.j

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolasgarniercommented, Aug 28, 2017

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.

1reaction
nicolasgarniercommented, Aug 28, 2017

Here are a few differences:

  • It’s using redux and the react-redux-firebase library
  • It’s authenticating users from the client on the server so that we can pre-render even private data.
  • It’s not packing a server bundle, instead it runs all the files through Babel and simply leaves all the JS files to be uploaded on the server.
  • It has NPM scripts to run in local/dev mode.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js isomorphic-react-example error - Stack Overflow
1 Answer 1 ... If you want to require a file as a module you have to give it the pathname, in this...
Read more >
Eventbrite Tech Talk: Isomorphic React Sans Node - YouTube
Ben Ilegbodu is a Senior Software Engineer at Eventbrite. React is JavaScript library for building user interfaces that has taken the web ...
Read more >
Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found