-
Notifications
You must be signed in to change notification settings - Fork 928
XHR Compat Lib not loaded doing firebase/app require #522
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
Comments
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information. |
Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight. |
I have this issue as well, and currently no way to get around it. |
Figured it out. If you're using Webpack, you need to ensure that the correct Firebase bundle is loaded when requiring any of the Firebase subpackages. Webpack likes to load resolve: {
mainFields: ['main']
}, There should probably be some documentation or a fix on Firebase's side since this is a really easy error to run in to. |
@nessup, just looking at this again, this has been resolved in the latest firebase versions. Are you still seeing this issue, and if so, can you open another issue with a repro? |
If a user trying to use the SDK leverages the
firebase/app
entrypoint (instead offirebase
), the XHR compatibility library isn't loaded.This results in the following code not working in node:
From #349 (comment)
The text was updated successfully, but these errors were encountered: