emberfire: emberfire install results in generate error message

Version info

DEBUG: Ember      : 3.10.1
DEBUG: Ember Data : 3.10.0
DEBUG: EmberFire  : 3.0.0-rc.3
DEBUG: jQuery     : 3.4.1
DEBUG: -------------------------------

Steps to reproduce

Run ember install emberfire@next, then ember serve. Attempt to save some data:

const newInvitation = this.store.createRecord('invitation', {email: email});
newInvitation.save()

Expected behavior

Emberfire should install and the data should send to the Firebase server and display on the server.

Actual behavior

Installing gives this:

$ ember install emberfire@next                                        
- Installing addon package                                            
- npm: Installing emberfire@next ...                                  
npm: Installed emberfire@next                                         
installing emberfire                                                  
The `ember generate ` command requires an entity name to  be specified. For more details, use `ember help`.
--

And attempting to save the data gives:

Failed to create an instance of 'adapter:application'. Most likely an improperly defined class or an invalid module export.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@BelaLawson unless there is a compelling reason, you don’t need to use emberfire with Firestore. I have found using an Ember Service with Firestore directly has been more than sufficient. Honestly, the Firebase team should look at letting the Ember community and more specifically the Ember Data community manage this project alongside them as updates take far too long. Please do not read that as a negative view on Firebase or the team that support the wonderful tools! I absolutely love Firebase, and @jamesdaniels and team are busy trying to keep the majority of the tools updated such as rxfire, angular/fire, emberfire, and then all of the great firebase packages too.

Needed normalizeEntityName in the blueprint. Addressed in rc.4

@RonyOCuinn we no longer have a Firebase Adapter in 3; there’s a RealtimeDatabaseAdapter and FirestoreAdapter located at emberfire/adapters/firestore and emberfire/adapters/realtime-database respectively. Give those a try.