firebase/snippets-web

import module name incorrect for firebase/database

kmc00 opened this issue · 2 comments

kmc00 commented

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

@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.

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