expo-cli
expo-cli copied to clipboard
Firebase/auth import source-map error
Summary
I am trying to run the app with expo start but the build is failing due to an import firebase module
This happened with these versions, Expo CLI version : 6.0.5 Expo SDK Version: 46.0.0
I have tried to fix that with metro config but it doesn't work and I don't find any solution anywhere
The error log is below. Please tell me a solution
Environment
run: expo start or npx expo start
Please specify your device/emulator/simulator platform, model and version
--platform android
Error output
Android Bundling failed 3947ms Unable to resolve "../../../../src/firebase/auth" from "node_modules\firebase\auth\dist\index.esm.js"
Reproducible demo or steps to reproduce from a blank project
- expo install firebase (version: 9+)
- import { getAuth } from 'firebase/auth' - and use that
- run project: expo start