No Firebase App '[DEFAULT]' has been created #1589
Unanswered
D4rkMindz
asked this question in
Questions and Help
Replies: 1 comment 1 reply
-
Is there any suggestion regarding a pull request? I'm not that deep into the understanding of vuefire to actually pull of such a adjustment |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproduction
not possible since nuxt template is not working properly after setup according to README.md
Steps to reproduce the bug
Expected behavior
The function useDocument returns the document ref properly without displaying the error "No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app)."
Stacktrace
Actual behavior
"No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app)." is displayed.
Additional information
I debugged a little (like many hours) and found out, that it would work as expected if:
This adjustments were made in the dist folder in the file vuefire/dist/index.mjs
The retrieval of the default app (getApp()) does not seem to work if called from a composable. The selected app name does not seem to be used (if custom app names are used).
The following error also occurs in the server log:
Error Log
Beta Was this translation helpful? Give feedback.
All reactions