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
Require cycle: ../../node_modules/@grpc/grpc-js/build/src/channel.js #8231
Comments
Hi @ErionTp, thanks for submitting this issue. I was able to produce a minimal reproduction:
import { initializeApp } from 'firebase/app';
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
/* Replace me with your firebase project config */
};
const app = initializeApp(firebaseConfig);
getFirestore(app);
|
This appears to be from within a dependent library. They have an open issue for dependency cycles within their code: |
Those particular modules are not required for web. I think there might be something wrong with how the bundler is configured. |
This looks like a recurring issue with the default Metro config resolving to
The Metro config needs to be changed somehow so that it resolves to I think this is beyond the scope of the JS SDK as all the paths in our package.json seem to follow standards for how to label browser, Node, ESM, and CJS bundle and Metro ought to be able to follow these fields to a web bundle, and not a Node bundle. We can leave this issue open in case anything spots anything wrong with our package.json configuration, but it seems at the moment like the issue is with Metro, or the default Metro config at least. See previous issue: |
Operating System
Mac Sonoma 14.4.1
Browser Version
Chrome/ Version 124.0.6367.119 (Official Build) (arm64)
Firebase SDK Version
10.11.1
Firebase SDK Product:
Auth, Firestore
Describe your project's tooling
React Native Expo, Web with metro.config.js
Describe the problem
Im trying to add a context provider so I can handle the status of the user. In the native app everything works fine. When I try to open the app on web it warns me like:
Steps and code to reproduce issue
I have the firebase config:
Then I call this in a context provider:
There is no other configuration or setup, this project is quite new.
The text was updated successfully, but these errors were encountered: