We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ca96b commit 326af38Copy full SHA for 326af38
lib/module.js
@@ -326,9 +326,10 @@ function validateConfigKeys(options, currentEnv) {
326
* See https://github.com/nuxt-community/firebase-module/issues/93
327
*/
328
function terminateDatabasesInGenerateHooks(ctx) {
329
- const firebaseDir = ctx.nuxt.options.srcDir + '/node_modules/firebase/'
330
ctx.nuxt.hook('generate:before', async (generator) => {
331
- const { default: firebase } = await import(firebaseDir + 'app')
+ const { default: firebase } = await import('firebase/compat/app')
+ await import('firebase/compat/database')
332
+ await import('firebase/compat/firestore')
333
334
if (!firebase.apps.length) {
335
firebase.initializeApp(generator.options.firebase.config)
0 commit comments