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

Latest master branch does not build #349

Closed
cah-danmonroe opened this issue Apr 28, 2016 · 14 comments · Fixed by #364
Closed

Latest master branch does not build #349

cah-danmonroe opened this issue Apr 28, 2016 · 14 comments · Fixed by #364

Comments

@cah-danmonroe
Copy link
Contributor

cah-danmonroe commented Apr 28, 2016

Installing the latest master branch fails to build.

npm --version

2.147

ember --version

ember-cli: 2.4.3
node: 4.2.3
os: darwin x64

Here are the steps I took to reproduce:

Installed packages for tooling via npm.
installing ember-paper
create app/styles/app.scss
install bower packages hammer.js, matchMedia
not-cached https://github.com/hammerjs/hammer.js.git#*
not-cached https://github.com/paulirish/matchMedia.js.git#0.2.0
resolved https://github.com/paulirish/matchMedia.js.git#0.2.0
resolved https://github.com/hammerjs/hammer.js.git#2.0.8
Installed browser packages via Bower.
install package ember-cli-sass
⠙ Installing packages for tooling via npmBinary downloaded and installed at /Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli-sass/node_modules/broccoli-sass-source-maps/node_modules/node-sass/vendor/darwin-x64-46/binding.node
⠸ Installing packages for tooling via npm"/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli-sass/node_modules/broccoli-sass-source-maps/node_modules/node-sass/vendor/darwin-x64-46/binding.node" exists.
testing binary.
Binary is fine; exiting.
Installed packages for tooling via npm.
Installed addon package.

  • ember build

Build failed.
The Broccoli Plugin: [Funnel: AngularScssFunnel] failed with:
Error: ENOENT: no such file or directory, lstat '/Users/daniel.monroe/projects/training/ember/eptest/node_modules/angular-material-source/src'
at Error (native)
at Object.fs.lstatSync (fs.js:839:18)
at symlink (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/symlink-or-copy/index.js:60:26)
at symlinkOrCopySync (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/symlink-or-copy/index.js:55:5)
at /Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/broccoli-plugin/read_compat.js:58:9
at lib$rsvp$$internal$$tryCatch (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/broccoli-plugin/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/broccoli-plugin/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/broccoli-plugin/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:1019:11)
at lib$rsvp$asap$$flush (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/broccoli-plugin/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:1198:9)
at doNTCallback0 (node.js:419:9)
The broccoli plugin was instantiated at:
at Funnel.Plugin (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/node_modules/broccoli-plugin/index.js:7:31)
at new Funnel (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/node_modules/broccoli-funnel/index.js:44:10)
at Class.module.exports.treeForStyles (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-paper/index.js:112:28)
at Class._treeFor (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli/lib/models/addon.js:322:31)
at Class.treeFor (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli/lib/models/addon.js:290:19)
at /Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli/lib/broccoli/ember-app.js:463:20
at Array.map (native)
at EmberApp.addonTreesFor (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli/lib/broccoli/ember-app.js:461:30)
at EmberApp.styles (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli/lib/broccoli/ember-app.js:1243:25)
at EmberApp.toArray (/Users/daniel.monroe/projects/training/ember/eptest/node_modules/ember-cli/lib/broccoli/ember-app.js:1565:10)

package.json:

{
"name": "eptest",
"version": "0.0.0",
"description": "Small description for eptest goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.4.2",
"ember-ajax": "0.7.1",
"ember-cli": "2.4.3",
"ember-cli-app-version": "^1.0.0",
"ember-cli-babel": "^5.1.6",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-htmlbars": "^1.0.3",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.4.0",
"ember-cli-qunit": "^1.4.0",
"ember-cli-release": "0.2.8",
"ember-cli-sass": "5.3.1",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.4.2",
"ember-export-application-global": "^1.0.5",
"ember-load-initializers": "^0.5.1",
"ember-paper": "git+https://github.com/miguelcobain/ember-paper.git#1ec9596ece800afe76ad490f4f53f260b9b779e6",
"ember-resolver": "^2.0.3",
"loader.js": "^4.0.1"
}
}

bower.json:

{
"name": "eptest",
"dependencies": {
"ember": "~2.4.3",
"ember-cli-shims": "0.1.1",
"ember-cli-test-loader": "0.2.2",
"ember-qunit-notifications": "0.1.0",
"hammer.js": "^2.0.8",
"matchMedia": "0.2.0"
}
}

@miguelcobain
Copy link
Collaborator

Probably related with #343

/cc @eriktrom

@miguelcobain
Copy link
Collaborator

We may need to check the npm version we're running in? It's sad to need to do that in 2016.

@eriktrom
Copy link
Contributor

It's this line:

/Users/daniel.monroe/projects/training/ember/eptest/node_modules/angular-material-source/src

This builds correctly in my project with npm 3.x but that should not matter. The only difference I can see at a glance is that I added ember-paper to dependencies instead of devDependencies, but that really shouldn't matter.

Also it's builds on travis, which uses npm 2.x so this does seem odd.

I'll take a closer look though

@eriktrom
Copy link
Contributor

A good smoke test, and way to work backwards is to run npm i inside of ember-paper itself and then npm link to your project. If that works, let me know. If not, then there is another issue going on

@cah-danmonroe
Copy link
Contributor Author

Same error after npm linking as well.

@eriktrom
Copy link
Contributor

@cah-danmonroe - we can pair if you'd like - try the following first though inside your project directory:

npm i -g npm && \
rm -rf ./node_modules && \
npm i && \ 
bower cache clean && \
bower install && \
./node_modules/.bin/ember serve

The problem seems to be that there is no folder /Users/daniel.monroe/projects/training/ember/eptest/node_modules/angular-material-source/src which is why you get this error:

Error: ENOENT: no such file or directory, lstat '/Users/daniel.monroe/projects/training/ember/eptest/node_modules/angular-material-source/src'

Make sure to use npm 3.x with node 4.x. Let me know if your still stuck. Don't mind jumping on screenhero for a sec

@cah-danmonroe
Copy link
Contributor Author

If I switch to npm 3.8.6 with node 5.11.0, ember paper does build. It puts angular-material-source into my project's node_modules directory. npm version 2.x does not.

@eriktrom
Copy link
Contributor

Glad you got it working. Sorry about the trouble.

Node 0.12 and npm 2.x on my machine do work, and so does travis which makes this all a bit interesting. We'll see if it arises again.

Thanks for reporting the issue @cah-danmonroe

@miguelcobain
Copy link
Collaborator

@eriktrom From what I understand, the problem was not building ember-paper but installing ember-paper.

@cah-danmonroe
Copy link
Contributor Author

I think the issue still exists. It never worked for me when I was on npm 2.147/node 4.23. I had to upgrade for it to work. If your intention is to support npm 2.x, then I think there is more to investigate.

@thijsvdanker
Copy link

I had the same issue when running node 4.4.3 and npm 2.15.1.
The problem is with building (ember serve) as it can't find the angular-material-source. I agree with @miguelcobain that it's probably related to #343

Upgrading to npm 3.x resolves the issue, but as ember-cli recommends npm 2.x it would be nice if this could be fixed.

@eriktrom
Copy link
Contributor

eriktrom commented May 4, 2016

thanks for letting me know, im looking further into it (now im pretty curious)

eriktrom added a commit to eriktrom/ember-paper that referenced this issue May 4, 2016
- Angular-material-source does not have a main node module, its only
  built to ./dist and published via bower. The first attempt to make
  this work with npm 3.x broke (some users) npm 2.x env's.

- This aims to allow building a project that includes this addon for
  npme 2.x and 3.x for all versions of node.

fixes adopted-ember-addons#349
@eriktrom
Copy link
Contributor

eriktrom commented May 4, 2016

Did a little digging, understand the problem better, made my best attempt in #364

Need ya'll to try it, works on my machine, but it always has, LOL

@DanChadwick
Copy link
Contributor

Closing in favor of discussion in PR #346.

miguelcobain pushed a commit that referenced this issue May 5, 2016
- Angular-material-source does not have a main node module, its only
  built to ./dist and published via bower. The first attempt to make
  this work with npm 3.x broke (some users) npm 2.x env's.

- This aims to allow building a project that includes this addon for
  npme 2.x and 3.x for all versions of node.

fixes #349
eriktrom added a commit to eriktrom/ember-paper that referenced this issue May 6, 2016
- Angular-material-source does not have a main node module, its only
  built to ./dist and published via bower. The first attempt to make
  this work with npm 3.x broke (some users) npm 2.x env's.

- This aims to allow building a project that includes this addon for
  npme 2.x and 3.x for all versions of node.

fixes adopted-ember-addons#349
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.

5 participants