poetic/ember-cli-cordova

Build failing on fresh install with starter kit

Closed this issue · 10 comments

The ember build gives me this error:

Build failed.
ENOENT, no such file or directory 'pathtoproject/tmp/concat_with_maps-input_base_path-r0Usy0UC.tmp/0/bower_components/hammerjs/hammer.js'

I'm on iOS Yosemite (10.10.5) and have:
cordova: 5.0.0
ember: 1.13.8
node: 0.12.7
npm: 2.13.4

I don't know why this error would be happening on a fresh install, but I was able to fix it by going into the project directory and running:

bower install hammerjs

Gonna close this because it is old. If it is still happening, please open a new issue and include steps to recreate.

@graphicgeek @BryanH yes, this still exists

the problem is when you run ember generate cordova-starter-kit it doesn't run bower install hammerjs --save

@tsm91 Thank you! That fixed the problem for me.

Closing this. Please open again if you are having challenges.

I am having the same issue, I had to bower install hammerjs, then rename it to hammer.js because bower was installing it as bower_components/hammerjs and broccoli is looking for bower_components/hammer.js/. This was also a fresh install. If you guys won't fix, maybe make a note of it in the README, I vote for the fix though...

@charliemitchell Please submit a pull request and we'll merge it in

@BryanH @charliemitchell this is an incorrect fix, but also you know there's now ember-cordova :D

To be more clear, the reason this is an incorrect fix is that the starter kit is locked to old versions of ember-gestures et all, and hammer.js not hammerjs should have been installed by bower. There was an unfortunate hang up where both are now available on bower.

Yes, I opted for ember-cordova. Yes, that's unfortunate, but it happens. Ultimately, my comment above may help others who run into the same problem, if you guys want to add a note to the README, cool, I'll leave it up to you as I'm moving on to ember-cordova.