-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
import firebase error #930
Comments
What firebase action are you trying to do? Or is this error thrown when trying to initilize the app? |
@Ehesp i only initialize the app, but even if i comment it out it seems like adding the two require lines above is enough to let the server crash. |
@sakulstra I guess that's an issue. Since firebase is not open source, that can be quite tricky. May be we could try to read the source code at |
Could you try |
@timneutkens this will most properly work as it's basically equivalent to: @arunoda i'll try to figure things out, but my hopes are low as it's not important enough to waste a lot of time with this :) |
@sakulstra I do the general import, also does't work with specific importing. On a side note with Firebase, just remember you can't do authentication with the client SDK on the server, or anything which requires user specific requests. |
Same problem here, only solution using a general |
Hello,
I the firebase docs there's a section about reducing bundle size by only importing/requiring the parts that you need e.g.:
which works perfectly fine on e.g. create-react-app.
On next.js i get an
{ [Error: The XMLHttpRequest compatibility library was not found.] code: 'auth/internal-error', message: 'The XMLHttpRequest compatibility library was not found.' }
errorSomeone has an idea where this comes from?
I assume it has sth to do with not using webpack on the server-side and so running in some ssr issues?
Using
on the other hand works perfectly fine.
The text was updated successfully, but these errors were encountered: