expo / snack

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

Issue with Adding Firebase Version 9+ in Snack Expo v50.0.0 #563

Open rojewskieu opened 4 months ago

rojewskieu commented 4 months ago

Summary

I hope this message finds you well. I am reaching out to report an issue I've encountered while working with Snack Expo version 50.0.0. I have been attempting to update my project's Firebase dependencies to version 9 or higher, but I consistently face an error that prevents me from proceeding further.

What platform(s) does this occur on?

Android

SDK Version

50

Reproducible demo or steps to reproduce from a blank project

Dear Snack Expo Team, I hope this message finds you well. I am reaching out to report an issue I've encountered while working with Snack Expo version 50.0.0. I have been attempting to update my project's Firebase dependencies to version 9 or higher, but I consistently face an error that prevents me from proceeding further.

When trying to add Firebase version 9.6.10 or any newer version, I encounter the following error message: "Failed to resolve dependency 'firebase@^9.6.10' (Can't resolve '' in '/tmp/snackager/snackager/buildStatus/1/firebase@9.23.0-ios,android,web/package') Retry"

I have attempted to use various versions starting from 9.0.0 upwards, but the issue persists with each attempt. Utilizing the latest features and security fixes available in Firebase 9+ is crucial for my project, making this issue particularly impactful for me.

Could you please provide assistance in resolving this issue? Is this a known compatibility issue with Snack Expo v50.0.0, or are there additional configuration steps required on my end?

Thank you in advance for your support and assistance. I appreciate the opportunity to work with Snack Expo and look forward to a prompt resolution to this problem.

Best regards,

lordjack commented 6 days ago

I am having the same problem, for me it only works if I downgrade for version 8.10.0 of the firebase.

Follow my example

09-rajeshEOF commented 6 days ago

I am having the same problem, for me it only works if I downgrade for version 8.10.0 of the firebase.

Follow my example

I am also having same issue! and now i am trying to config firebase but getting these two modules are not there "import { initializeApp } from "firebase/app"; import { getAnalytics } from "firebase/analytics";"