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

import module name incorrect for firebase/database #338

Closed
kmc00 opened this issue Apr 14, 2023 · 2 comments
Closed

import module name incorrect for firebase/database #338

kmc00 opened this issue Apr 14, 2023 · 2 comments

Comments

@kmc00
Copy link

kmc00 commented Apr 14, 2023

https://github.com/firebase/snippets-web/blob/e2beb93c2842b540ce78403ff4e2b115ebc0d072/snippets/database-next/index/rtdb_get_reference.js

All import refrances to Firebase Database are incorrect.
Should be @firebase/database and not firebase/database

@thatfiredev
Copy link
Member

@CoombesJ based on this SO answer, it looks like the use of @ depends on what module loader/bundler you're using.

I believe most module loaders don't need @, so I would vote to keep the snippet as it is.

@thatfiredev
Copy link
Member

Closing this for now. Feel free to reopen if you still need help

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

2 participants