Vuefire: Uncaught TypeError: _firebase2.default is not a constructor

Created on 15 Jun 2016  路  5Comments  路  Source: vuejs/vuefire

Hello,
I am trying to run the following simple line of code in my _main.js_ file:
var Users = new Firebase('https://vue-demo.firebaseIO.com/users');
and I get this weird error:
Uncaught TypeError: _firebase2.default is not a constructor

Any idea? it's driving me crazy! :(

FYI, I am using Vue js, vue fire and firebase all installed through npm.
Thanks!

question

All 5 comments

Might you be using Firebase 3.x.x with this version of Vuefire?

This version of vuefire is currently for Firebase 2.x. The code to make it compatible with Firebase 3.x.x hasn't been merged yet.

So check that.

You should be able to use the Firebase 3.x.x SDK with the just-released VueFire 1.1.0.

@jwngr Awesome. Do we have to build it ourselves or will the vuefire.js and vuefire.min.js files in the dist be updated as well?

Installation instructions are here. Looks like @yyx990803 still needs to add the latest release to the CDN and create a new release for it here. In the meantime, you can get it via the npm install method.

Got it! Thanks for your help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drumanagh picture drumanagh  路  3Comments

calirails picture calirails  路  5Comments

KMolendijk picture KMolendijk  路  3Comments

franciscolourenco picture franciscolourenco  路  7Comments

patrikengborg picture patrikengborg  路  4Comments