I’m working on a React Native Expo project on a Mac, and I’m encountering an issue where my firebaseConfig.ts
file does not seem to load correctly when my app starts. The app only recognizes the file and works as expected after I manually edit and save the firebaseConfig.ts
file. This issue disrupts the development process and requires constant manual intervention.
What could be causing this problem, and how can I ensure that firebaseConfig.ts loads properly without needing to manually edit it each time?
I also use environment variables on my firebaseConfig.ts
.
Steps I’ve tried to resolve the issue:
- Ensured the export and import paths are correct.
- Cleared the Metro bundler cache using expo start -c.
- Checked for proper hot reloading in Expo.
- Verified my editor’s file change detection settings.