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

Unable to Build for Development #3

Closed
Albert-IV opened this issue Sep 11, 2014 · 5 comments · Fixed by #5
Closed

Unable to Build for Development #3

Albert-IV opened this issue Sep 11, 2014 · 5 comments · Fixed by #5

Comments

@Albert-IV
Copy link
Contributor

Was looking to see how hard/ easy it would be to set up a job view (/job/:jobId), however I'm unable to get the dependencies to actually work.

I had this issue a while ago, but I figured with the new look the build would be fixed.

So I clone the repo and try to npm install inside the base directory. When I try that, it throws an error saying it can't find a specific directory, /agenda-ui/app/node_modules/broccoli-ember-hbs-template-compiler.

I then try to go into the app/ directory and npm install, which will also fail, saying it couldn't lstat a file inside the app/node_modules/ember-cli-qunit folder.

NPM Debug Log: https://gist.github.com/droppedonjapan/f96cae70ae893c84eef3
/app NPM Debug Log: https://gist.github.com/droppedonjapan/ba4a60606c004fe857f9

Any ideas how to get this working? The application works from inside Express, I just can't get the project set up so I can look at improving anything.

@moudy
Copy link
Owner

moudy commented Sep 16, 2014

@droppedonjapan can't tell what your issue is. I updated the project to ember-cli 0.44 to see if that would help. It's working fine for me. Can you try again and let me know? Make sure to run bower install in the app/ directory in addition to npm install.

@Albert-IV
Copy link
Contributor Author

I've found out why this wasn't installing, apparently you need both Bower and Ember installed globally for this to work. Do you want me to add something to the README to reference that?

On the road to installing, it looks like your Bower entry for bootstrap-sass-official might be pointing to the wrong target. I see the tag in GitHub exists, however Bower says it isn't a valid install target (this happened even after cleaning Bower's cache). After changing the dependency from ~3.2.0+2 to ^3.2.0 bower install would finish without any issues.

screenshot from 2014-09-16 08 16 30

So the last bump in the road is that I can't get your npm prepublish build script to finish correctly; it failing at the ember build step. If I change the npm script name the npm install finishes correctly.

$ npm install

> agenda-ui@0.0.6 prepublish /home/alberte/personal/agenda-ui
> ./scripts/build

version: 0.0.44
Build failed.
Path or pattern "vendor/highlight/highlight.pack.js" did not match any files [string exception]
Error: Path or pattern "vendor/highlight/highlight.pack.js" did not match any files [string exception]
    at /home/alberte/personal/agenda-ui/app/node_modules/ember-cli/node_modules/broccoli/lib/builder.js:34:15
    at $$$internal$$tryCatch (/home/alberte/personal/agenda-ui/app/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:470:16)
    at $$$internal$$invokeCallback (/home/alberte/personal/agenda-ui/app/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:482:17)
    at $$$internal$$publish (/home/alberte/personal/agenda-ui/app/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:453:11)
    at $$$internal$$publishRejection (/home/alberte/personal/agenda-ui/app/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:395:7)
    at $$rsvp$asap$$flush (/home/alberte/personal/agenda-ui/app/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1531:9)
    at process._tickCallback (node.js:419:13)
mv: cannot stat ‘./dist/assets/app.*’: No such file or directory
mv: cannot stat ‘./dist/assets/vendor*’: No such file or directory

npm ERR! agenda-ui@0.0.6 prepublish: `./scripts/build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the agenda-ui@0.0.6 prepublish script.
npm ERR! This is most likely a problem with the agenda-ui package,
npm ERR! not with npm itself.

So we're close! If you want a PR for the README and Bower.json file, let me know and I can whip one up. I'm playing with the Brocfile.js now.

@Albert-IV
Copy link
Contributor Author

Yeah, I can't seem to find this highlight.pack.js anywhere. I noticed that the base node_modules has the highlight.js package installed, but I can't find that specific file that you are trying to import anywhere in the project.

That being said, this was my order of operations:

cd app/
npm install
bower install
cd ..
npm install

@moudy
Copy link
Owner

moudy commented Sep 16, 2014

@droppedonjapan oops, I forgot to un-ignore highlight.pack.js. I'm including it in the repo because it's a custom build of highlightjs that only includes JSON syntax highlighting. Does that solve it?

@Albert-IV
Copy link
Contributor Author

Ahh, that fixed most of my issues. I'm going to submit a PR to improve the development documentation a bit, as well as fix the broken Bower dependency.

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

Successfully merging a pull request may close this issue.

2 participants