Firebase-js-sdk: Module ''firebase'' has no exported member 'firebase'.

Created on 12 Jan 2018  路  2Comments  路  Source: firebase/firebase-js-sdk

[REQUIRED] Describe your environment

  • Operating System version: Windows 10 Pro
  • Firebase SDK version: 4.8.2
  • Firebase Product: Firebase itself

[REQUIRED] Describe the problem

Updated to the latest Firebase version with my Ionic 3 project and now I get the error below!

Steps to reproduce:

By simply importing the package
import { firebase } from 'firebase';

Relevant Code:

[ts] Module ''firebase'' has no exported member 'firebase'.
needs-triage

Most helpful comment

I don't believe the firebase NPM package has ever supported a named firebase export. Instead you should use either:

import firebase from 'firebase';

Or:

import * as firebase from 'firebase';

All 2 comments

Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.

I don't believe the firebase NPM package has ever supported a named firebase export. Instead you should use either:

import firebase from 'firebase';

Or:

import * as firebase from 'firebase';
Was this page helpful?
0 / 5 - 0 ratings