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

Problem installing ember-pouch #157

Closed
InjustFr opened this issue Nov 1, 2016 · 11 comments
Closed

Problem installing ember-pouch #157

InjustFr opened this issue Nov 1, 2016 · 11 comments

Comments

@InjustFr
Copy link

InjustFr commented Nov 1, 2016

Hi,

I'm trying to install ember-pouch with ember-cli 2.9.1 and ember-data 2.9. Only problem I'm getting this error :
The ember generate <entity-name> command requires an entity name to be specified. For more details, use ember help.

Is this an ember-pouch issue or does it come from something else ? I haven't had any issue installing other packages

Thanks for your help

@InjustFr
Copy link
Author

InjustFr commented Nov 1, 2016

I just tryed with ember-cli 2.8.0 and I have the same issue

@dweremeichik
Copy link
Contributor

dweremeichik commented Nov 2, 2016

@thewolfs This is likely an issue with ember-pouch.

In addition to what @thewolfs is seeing, when you try to run ember server, you get:

The Broccoli Plugin: [SourceMapConcat: Concat: Vendor /assets/vendor.js] failed with:
Error: ENOENT: no such file or directory, stat 'path/to/app/tmp/source_map_concat-input_base_path-kXzQ8FR4.tmp/0/bower_components/pouchdb/dist/pouchdb.js'

Steps to reproduce:

  1. Create a new ember project - ember new something
  2. Install ember-pouch - ember install ember-pouch -- this is the step where you see the issue that @thewolfs is describing
  3. Run the server - ember serve -- this is where you see the Broccoli error.

@broerse @Fed03 could this be related to #147?

@dweremeichik
Copy link
Contributor

It appears that the after install in the ember-pouch blueprint never gets run. Therefore the necessary files do not get added from bower.

@thewolfs for a work around, add the following to the dependencies in your bower.json file:

    "pouchdb": "^5.4.5",
    "relational-pouch": "^1.4.4",
    "pouchdb-find": "^0.10.2"

the file should then look similar to:

{
  "name": "app",
  "dependencies": {
    "ember": "~2.8.0",
    "ember-cli-shims": "0.1.1",
    "pouchdb": "^5.4.5",
    "relational-pouch": "^1.4.4",
    "pouchdb-find": "^0.10.2"
  }
}

Then run bower install.

After doing so, I was able to run ember serve just fine.

@Fed03
Copy link
Contributor

Fed03 commented Nov 2, 2016

@dweremeichik I looked into it and I think the problem is the removal of normalizeEntityName() method in the default blueprint. Sadly I don't know how to test if re-adding it solves the problem.

@broerse any hint?

@broerse
Copy link
Collaborator

broerse commented Nov 2, 2016

@Fed03 Adding this seems to be a good thing anyway. Make the PR and I will release 4.0.3

@broerse broerse closed this as completed in 5a24084 Nov 2, 2016
broerse added a commit that referenced this issue Nov 2, 2016
@dweremeichik
Copy link
Contributor

@Fed03 I think I have an idea for regression testing this. I will look into
it.

On Wed, Nov 2, 2016, 8:52 AM Martin Broerse notifications@github.com
wrote:

@Fed03 https://github.com/Fed03 Adding this seems to be a good thing
anyway. Make the PR and I will release 4.0.2


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#157 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD4_-Ikzl_pOIj5-Qd-FQH6FeVm1GARlks5q6IeVgaJpZM4KmtCi
.

@broerse
Copy link
Collaborator

broerse commented Nov 2, 2016

@dweremeichik @Fed03 Test 4.0.3 now

@broerse
Copy link
Collaborator

broerse commented Nov 2, 2016

@thewolfs It should be fixed in 4.0.3

@dweremeichik
Copy link
Contributor

@broerse 4.0.3 seems to do the trick, thanks @Fed03!
@thewolfs if I am not wrong, simply doing an ember install ember-pouch again should update your project to the latest version.

@Fed03
Copy link
Contributor

Fed03 commented Nov 2, 2016

glad to help guys!

@InjustFr
Copy link
Author

InjustFr commented Nov 3, 2016

That fixed it for me, thank you guys !

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