Skip to content
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

Problem importing firebase #7

Open
SohanShanbhag opened this issue Aug 29, 2021 · 2 comments
Open

Problem importing firebase #7

SohanShanbhag opened this issue Aug 29, 2021 · 2 comments

Comments

@SohanShanbhag
Copy link

Uncaught TypeError: Failed to resolve module specifier "firebase/app". Relative references must start with either "/", "./", or "../".

Please help me

@talker93
Copy link

talker93 commented Nov 8, 2021

I just met the same problem, it might be caused by an recent update of firebase.
try this one:
import firebase from 'firebase/compat/app';
import 'firebase/compat/firestore';

@evansmith-tech
Copy link

I think you need to build with vite first, then serve it. I ran into this problem when I deployed it to firebase hosting, you can't just ship index.html, main.js, and styles.css. You need to build first and ship that. The JS is written with vite in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants