question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fatal error after adding nuxt-fire and running yarn dev

See original GitHub issue

I followed your exact instructions with yarn add, updating by nuxt.config file. When I run yarn serve, I get the following fatal error:

Error: (Nuxt-Fire) Options are missing or empty, add at least the Firebase config parameters in your nuxt.config.js file.

My nuxt-fire config is exactly copied from your main github page.

'nuxt-fire',
    {
      config: {
        apiKey: 'AIzaSyALn_uJ7Z9EsxUOPPqNj8OoKyxRlm8zDh8',
        authDomain: 'order-placing-test.firebaseapp.com',
        databaseURL: 'https://order-placing-test.firebaseio.com',
        projectId: 'order-placing-test',
        storageBucket: 'order-placing-test.appspot.com',
        messagingSenderId: '843018056570',
        appId: '1:843018056570:web:6ad6f650a5baada270dcc3'
      },
      services: {
        auth: true // Just as example. Can be any other service.
      }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
keertipatipcommented, Apr 28, 2020

@andyfensham @sosoaroun - I’m facing the same issue. What the solution for this issue?

I did something like below to make it work. Separated firebase config from modules.

 modules: [
    '@nuxtjs/firebase',
  ],
   /*
  ** Firebase Configuration
  */
 firebase: {
    config: {
      apiKey: ' ',
      authDomain: ' ',
      databaseURL: ' ',
      projectId: ' ',
      storageBucket: ' ',
      messagingSenderId: ' ',
      appId: ' ',
      measurementId: ' '
    },
    services: {
      auth: true,
      firestore: true,
      storage: true,
      realtimeDb: true,
    },
  },
1reaction
eMan-2000commented, Mar 9, 2021

Turns out I’m a moron and you’re right 😃 I wasn’t wrapping it properly. It does work indeed - you can close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't run my nuxt app using yarn dev command
I am trying to run my nuxt app using yarn dev command but i see an error. │ ✖ Nuxt Fatal Error ││...
Read more >
Installation
Here, you will find information on setting up and running a Nuxt project in 4 steps.
Read more >
nuxtjs/stylelint-module
Start using @nuxtjs/stylelint-module in your project by running `npm i ... yarn add --dev @nuxtjs/stylelint-module # or npm install ...
Read more >
The firebase-module from nuxt-community - Giter VIP
fatal error after adding nuxt-fire and running yarn dev. I followed your exact instructions with yarn add, updating by nuxt.config file. When I...
Read more >
cannot start nuxt: cannot read properties of undefined ...
Running nuxi dev results in Cannot start nuxt: Cannot read property 'callHook' of ... yarn add @nuxtjs/i18n; add module and options to nuxt.config.ts ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found