Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geofirestore__WEBPACK_IMPORTED_MODULE_5___default.a is not a constructor #29

Closed
MikeJWms opened this issue Aug 20, 2018 · 2 comments
Closed

Comments

@MikeJWms
Copy link

Hi,

I'm getting the error geofirestore__WEBPACK_IMPORTED_MODULE_5___default.a is not a constructor

Originally seen in a nuxt app I'm working on, and reproduced in a vue cli 3 default app for testing. Also tried downgrading firebase to v5.0.3 like another person had luck with - no luck for me.

The vue cli 3 test project can be found here. The relevant code is inside the HelloWorld.vue component, here.

Thanks for your work on this library! Hopefully this is a quick fix.

@MichaelSolati
Copy link
Owner

@MikeJWms the way that you're importing firebase and geofirestore are off, try changing lines 8->10 to this

import * as firebase from 'firebase/app';
import 'firebase/firestore' //if use firestore
import {GeoFirestore} from 'geofirestore'

@MikeJWms
Copy link
Author

Awesome, thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants