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

Cannot read property 'config' of undefined (dupe of #493) #555

Open
Benjamin-Lee opened this issue Jun 20, 2021 · 2 comments
Open

Cannot read property 'config' of undefined (dupe of #493) #555

Benjamin-Lee opened this issue Jun 20, 2021 · 2 comments

Comments

@Benjamin-Lee
Copy link

I am making a new issue to track #493's problem, which I think was closed prematurely. Using the terminateDatabasesAfterGenerate option raises an error.

Version

@nuxtjs/firebase: 7.6.1
firebase: 8.6.8
nuxt: 2.15.3

Reproduction Link

See #493

Steps to reproduce

Use terminateDatabasesAfterGenerate: true

What is Expected?

The generation succeeds

What is actually happening?

ℹ Full static generation activated                                                          07:45:16

 FATAL  Cannot read property 'config' of undefined                                          07:45:16

  at node_modules/@nuxtjs/firebase/lib/module.js:334:57
  at runMicrotasks (<anonymous>)
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async Nuxt.callHook (node_modules/hable/dist/hable.js:1:959)
  at async Generator.initiate (node_modules/@nuxt/generator/dist/generator.js:102:5)
  at async Generator.generate (node_modules/@nuxt/generator/dist/generator.js:71:5)
  at async generate$1 (node_modules/@nuxt/cli/dist/cli-generate.js:46:22)
  at async Object.run (node_modules/@nuxt/cli/dist/cli-generate.js:284:7)
  at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-index.js:413:7)


   ╭───────────────────────────────────────────────────────────╮
   │                                                           │
   │   ✖ Nuxt Fatal Error                                      │
   │                                                           │
   │   TypeError: Cannot read property 'config' of undefined   │
   │                                                           │
   ╰───────────────────────────────────────────────────────────╯
@simeon9696
Copy link

I think you should include that property only if you were getting the below error:

⚠ Nuxt Warning 

The command 'nuxt generate' finished but did not exit after 5s
This is most likely not caused by a bug in Nuxt.js
Make sure to cleanup all timers and listeners you or your plugins/modules start.
Nuxt.js will now force exit

DeprecationWarning: Starting with Nuxt version 3 this will be a fatal error  

If you didn't get that in the first place, maybe you could try removing the property?

@Benjamin-Lee
Copy link
Author

To clarify, I was getting that error (using Nuxt Firebase plugin) with static generation

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