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.

Hi, please i need help with this. "_firebase2.default is not a constructor"

See original GitHub issue

i got this error when i run my react App:

create.js?84fe:13 Uncaught TypeError: _firebase2.default is not a constructor

just in the line when a create a new Firebase:

const ref = new Firebase('https://my-project.firebaseio.com/');

Can any one help me please, i use the latest version of firebase, reactfire, react-mixin

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
wubcommented, May 20, 2016

You either need to:

  • Downgrade to Firebase 2.X (force version in package.json) and continue as normal,
  • Or upgrade to the new Firebase, and use firebase.initializeApp() instead of new Firebase() - but you’ll probably have to wait for ReactFire 1.0.

When you upgrade, also make sure you do npm un --save firebase && npm i --save firebase to clean up old versions.

0reactions
jerrylau91commented, Jul 26, 2016

thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase: .default is not a constructor - reactjs - Stack Overflow
It seems that Firebase is undefined. At least from the error. Can you console.log the value of Firebase in the main code that...
Read more >
Firebase is not a constructor - Google Groups
Hi. I receive this error message since the initial set and till date I am not able to find out the solution to...
Read more >
[2] Build your React Blog with Firebase — Build our blog UI
In this tutorial, we will learn how to build your first react-app and the basic interface of our blog. After the project is...
Read more >
Learn the basis of Typescript to start writing Angular - codeburst
We need to use the “?” in the constructor like below. The “?” symbol allow us to declare a parameter has optional. class...
Read more >
How to Use Ionic SQLite Queries & Pre-Populated Database
In our case it's enough to have a SQL dump like the one below, so for testing create a file at src/assets/dummyDump.sql and...
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