Skip to content
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

fix(firebase/app):use import instead of require #11

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

ayal
Copy link
Collaborator

@ayal ayal commented Apr 26, 2021

after upgrading to firebase@8 - using firebase = require('firebase/app') followed by firebase.initializeApp resulted in an error similar to the one mentioned here: firebase/firebaseui-web#392 (comment)

importing using es6 syntax should solve it

this is under a major version (firebase-service@5) so should not affect production - should test with chat-sdk@21 (which uses firebase-service@5) and see if realtime works as expected

@ayal ayal requested review from doronpr and AdirAmsalem April 26, 2021 14:45
@ayal ayal merged commit 8190d60 into master Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant