New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: firebase is not defined at getAll #14
Comments
The |
I had both packages (firebase as well as firebase-saga) loaded in my webpack/react app but the global was not set. I could fix it by using |
Can you specify which version of firebase you are using? |
My project is based on the react-boilerplate. If I just initialize the firebase app in the app.js without attaching it to window, the error occurs once the saga fires. Route looks like:
relevant saga
|
Ok I can potentially see the issue is with the versions: Can you try |
Get the same error
|
Can you instead try adding Firebase to the
and see if it works for you. |
That worked, but it's a scenario I want to avoid with react |
Can you share your package config after the changes you've made? Did you get rid of the whole |
Any update here @mediavrog? Running into the same issue |
@mvanlonden currently sticking with the |
Importing Firebase as follows might potentially solve the issue:
|
@mediavrog also using React-boilerplate and ran into same issue. Can you throw some light on how the fix for the issue you have above is coming along? Any change? |
You can temporarily get a fix for it by applying. Also using react-boilerplate.
|
This works for me:
while this alone does not:
|
This works for me:
|
Hi,
I know this is a dupe but I found the previous ticket answer not sufficient so I'm checking again here:
There is no documentation on how your library gets ahold of the
firebase
reference it uses (e.g. in src/index.js) without loading any context or module.Is it absolutely necessary to make firebase globally available?
The text was updated successfully, but these errors were encountered: