8.2.2 • Published 2 years ago

@nuxtjs/firebase v8.2.2

Weekly downloads
11,902
License
MIT
Repository
github
Last release
2 years ago

npm.io npm.io npm.io npm.io

Easily integrate Firebase into your Nuxt project.

IMPORTANT!

⚠️ Breaking ⚠️:

@nuxtjs/firebase v8+ only supports Firebase v9 and later.

ℹ️ Modular Mode (Firebase v9+) ℹ️:

This module does not support the new modular syntax from Firebase v9+.

If you plan to use the new modular mode of Version 9, we advise you to implement Firebase manually as described in the following medium article.

It is currently unclear when, and if, this module will support the new modular mode. See discussion.

Links

Quick Setup

Make sure you are using the newest version of Nuxt and have Firebase >8.0.0 installed in your project.

yarn add firebase # OR npm i firebase

Install the module via NPM or Yarn:

yarn add @nuxtjs/firebase # OR npm i @nuxtjs/firebase

Quick Config

Add the following to your nuxt.config.js.

See all configuration options here.

modules: [
    [
      '@nuxtjs/firebase',
      {
        config: {
          apiKey: '<apiKey>',
          authDomain: '<authDomain>',
          projectId: '<projectId>',
          storageBucket: '<storageBucket>',
          messagingSenderId: '<messagingSenderId>',
          appId: '<appId>',
          measurementId: '<measurementId>'
        },
        services: {
          auth: true // Just as example. Can be any other service.
        }
      }
    ]
  ],

Quick Usage

Now you can use all Firebase services with this.$fire.auth, this.$fire.firestore, this.$fire.messaging etc. (see list here).

Example:

try {
  await this.$fire.auth.createUserWithEmailAndPassword('foo@foo.foo', 'test')
} catch (e) {
  handleError(e)
}

Guidelines for issues & feature requests

  • Use the GitHub issue search — check if the issue or feature request has already been reported.
  • Check if the issue has been fixed — try to reproduce it using the latest master or development branch in the repository.
  • Isolate the problem — create a reduced test case and a live example.

A good issue shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What versions are you using? What would you expect to be the outcome? All these details will help people to fix any potential bugs.

If you have difficulties that are most likely not bugs or if you just have a simple questions, please ask them in the Nuxt Discord server instead.

If you're issue does not suffice these guidelinses, it migt be closed immediately.

License

MIT - Nuxt-Community - Pascal Luther

8.2.2

2 years ago

8.2.0

2 years ago

8.1.0

2 years ago

8.1.1

2 years ago

8.0.0

2 years ago

8.0.0-beta.0

2 years ago

7.6.1

3 years ago

7.5.0

3 years ago

7.4.1

3 years ago

7.4.0

3 years ago

7.3.3

3 years ago

7.3.1

3 years ago

7.3.2

3 years ago

7.3.0

3 years ago

7.2.3

3 years ago

7.2.2

3 years ago

7.2.1

3 years ago

7.2.0

3 years ago

7.1.2

3 years ago

7.1.1

3 years ago

7.1.0

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

7.0.0-beta.0

3 years ago

6.1.1

4 years ago

6.1.0

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

5.2.0

4 years ago

5.1.0

4 years ago

5.0.7

4 years ago

5.0.6

4 years ago

5.0.5

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.2.2

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

0.0.0

4 years ago