Hi, please i need help with this. "_firebase2.default is not a constructor"
See original GitHub issuei 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:
- Created 7 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You either need to:
package.json
) and continue as normal,firebase.initializeApp()
instead ofnew 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.thanks!