-
Notifications
You must be signed in to change notification settings - Fork 897
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
undici
dependency breaks bundling with React Native (Expo) due to use of stream
module
#7849
Comments
I was curious about this @arvl130 as I work at the intersection of firebase-js-sdk and react-native-firebase so these "in-between" issues are always interesting Have you tried pulling in the |
EDIT: @mikehardy I misread the error. The resolver config actually works fine. The problem with mapping
|
Ok, now I'm really proposing ugly things, but I wonder if you could add "stream/web" in your extra resolution as well? No idea if the API shapes are the same, but... Anyway, if this doesn't work at all and ends up costing you time I apologize - just brainstorming possible workarounds without testing |
relevant: nodejs/readable-stream#525 Thanks for pointing in a good direction @mikehardy will have to circle back to this when time permits, for now firebase stays on 10.6.0 unfortunately. |
We've limited the use of This problem seems to stem from metro using the main field in Firebase Auth's If you go into I made (unfortunately fruitless) attempts to force the metro resolver to use That being said, it shouldn't be required since the default value for At any rate, it seems that there's something that's pushing the resolver to use I hope this helps somewhat. |
I don't know enough about |
@mikehardy Adding this to
unfortunately yields the same error as the one I initially reported:
Anyhow, thanks for the suggestions. For my current project, I'm actually trying to get It looks like, for now, pinning to |
Hey @arvl130. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @arvl130 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
I have this same issue, someone can resolve this? Expo 49 |
Same issue here. |
This appears to be a resolver issue with Expo. Have you contacted their support? |
Operating System
Windows, Linux
Browser Version
Chrome, Firefox
Firebase SDK Version
10.7.1
Firebase SDK Product:
Auth
Describe your project's tooling
Describe the problem
Initializing Firebase on Expo with the dev client enabled, and running
onAuthStateChanged
produces this bundling error:Based on my understanding, this error is caused by Firebase's new dependency
undici
. The package uses thestream
module under the hood, which is not supported by Metro currently.The workaround for now is to downgrade to v10.6.0 which doesn't use
undici
, and thus has no use of thestream
module.I've read from another issue that the Firebase project is in the process of migrating from
node-fetch
toundici
. I'm curious if there are any better workarounds—or perhaps fixes—that could be done here, as it does not seem like Metro is going to support thestream
module anytime soon.Steps and code to reproduce issue
You may check this GitHub repo for a reproduction of the issue: https://github.com/arvl130/firebase-reactnative-broken-deps-repro
The text was updated successfully, but these errors were encountered: