expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
348 stars 97 forks source link

Failure to Resolve firebase dependency #268

Open Folami opened 2 years ago

Folami commented 2 years ago

Summary

Package.json fails to resolve firebase dependency I have been trying various alternative imports for 48 hrs, all alternatives ultimately want to import the firebase dependency which just cannot be resolved, see screenshot below.

Screenshot expo firebase

What platform(s) does this occur on?

Web

SDK Version

43.0.0

Reproducible demo or steps to reproduce from a blank project

{ "dependencies": { "yup": "", "formik": "", "firebase": "9.6.10", "valid-url": "", "expo-constants": "~12.1.3", "email-validator": "", "@expo/vector-icons": "^12.0.0", "react-native-paper": "4.9.2", "firebase/compat/app": "", "react-native-screens": "~3.8.0", "react-native-elements": "", "@react-navigation/stack": "*", "@react-navigation/native": "6.0.0", "react-native-gesture-handler": "~1.10.2", "react-native-safe-area-context": "3.3.2" } }

irfanullahjan commented 1 year ago

I too have this issue, only with installing firebase 9 in Expo Snack (firebase 8 work okay). Any clue what might be wrong here?

noisae commented 1 year ago

Same here, still not working

PhilCollins92 commented 1 year ago

I had the same problem, that’s how I solved it : "firebase": "8.0.0", "firebase/firestore": "", "firebase/auth": ""

PhilCollins92 commented 1 year ago

Screenshot 2023-03-19 20 48 07

AasthaSharma-git commented 3 months ago

Hi, I am trying the resolution mentioned above but it gives me following error: Unable to resolve module '@firebase/app.js'

What is the resolution to this?

PS: I am working on snack editor and expo version is 50.