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

ember generate command requires an entity name to be specified #94

Closed
kgish opened this issue Apr 13, 2015 · 5 comments
Closed

ember generate command requires an entity name to be specified #94

kgish opened this issue Apr 13, 2015 · 5 comments

Comments

@kgish
Copy link

kgish commented Apr 13, 2015

I'm using ember-cli v0.2.3 and followed the install instructions, resulting in the following error:

$ ember install ember-cli-mirage
version: 0.2.3
Installed packages for tooling via npm.
installing
  create app/mirage/config.js
  create app/mirage/factories/contact.js
  create app/mirage/fixtures/contacts.js
Installing browser packages via Bower...
  not-cached git://github.com/fivetanley/ember-inflector-bower.git#~1.3.1
  not-cached git://github.com/trek/pretender.git#~0.6.0
  resolved git://github.com/trek/pretender.git#0.6.0
  resolved git://github.com/fivetanley/ember-inflector-bower.git#1.3.1
  not-cached git://github.com/tildeio/route-recognizer.git#~0.1.1
  not-cached git://github.com/trek/FakeXMLHttpRequest.git#~1.0.0
  resolved git://github.com/trek/FakeXMLHttpRequest.git#1.0.0
  resolved git://github.com/tildeio/route-recognizer.git#0.1.5
Installed browser packages via Bower.
installing
The `ember generate` command requires an entity name to be specified. For more details, use `ember help`.

Afterwards when I run ember s I get the following message:

$ ember s
version: 0.2.3
Livereload server on port 35729
Serving on http://localhost:4200/
Warning: ignoring input sourcemap for bower_components/route-recognizer/dist/route-recognizer.js because ENOENT, no such file or directory '/home/kiffin/projects/ember/cli/na-mockup/tmp/tree_merger-tmp_dest_dir-bAlFkiRc.tmp/bower_components/route-recognizer/dist/route-recognizer.js.map'

Is there anything I am doing wrong?

@kgish
Copy link
Author

kgish commented Apr 13, 2015

The problem is solved by running:

$ ember generate ember-cli-mirage

This should be fixed in the installation script, suspect that ember generate is being run with an empty parameter.

@samselikoff
Copy link
Collaborator

Awesome, ty for investigating. This must have changed because ember install:addon used to run this by default?

@willrax
Copy link
Contributor

willrax commented Apr 14, 2015

Looks like there is a PR open on ember-cli to fix this. ember-cli/ember-cli#3846

@kgish
Copy link
Author

kgish commented Apr 14, 2015

Great, I couldn't find anything but guess I didn't look hard enough.

@elidupuis
Copy link
Contributor

Noticed this too. Thanks for the quick solution!

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

4 participants