chrisdesilva / pickup

App for finding nearby basketball courts for pickup games
MIT License
14 stars 28 forks source link

TypeError: _fire__WEBPACK_IMPORTED_MODULE_4__.default.collection is not a function #45

Closed ghost closed 4 years ago

ghost commented 4 years ago

I keep getting this error on line 43: Map.js:

  40 |   })
  41 | );
  42 | // pull data from database to have courts ready for display when component is ready
> 43 | db.collection('courts').get()
     | ^  44 |   .then(querySnapshot => {
  45 |     const Courts = []
  46 |     querySnapshot.forEach(function(doc) {
kriswep commented 4 years ago

Noticed this as well, in the prod version.

It seems to be originating from a broken import in Map.js. Send a PR to fix it.