firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Firebase does not work from Electron renderer context.

Open InputNeuron opened this issue 8 years ago • 5 comments

[REQUIRED] Describe your environment

  • Operating System version: Ubuntu 18.0.4
  • Browser version: Electron 3.0.0
  • Firebase SDK version: 5.5.2
  • Firebase Product: firebase cloud firestore (auth, database, storage, etc)

Steps to reproduce:

Firebase can't be used within the renderer context via typescript (or 'require') in Electron.

Electron is split into two processes.. the main process which is basically node and the renderer which is basically chromium.

However, if you 'require' firebase from within the renderer you get the following exception (see below).

This means I can't use Typescript from Electron to build Firebase apps.

I think this has something to do with detecting that it's running on nodejs and trying to go that route.

However, if I use the suggested route using

Owner


Other Repo Issues