question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ember-try fails with default addon app + ember-cli-sass

See original GitHub issue

With a brand new addon blueprint from ember-cli 2.13.2, ember-try fails with this exception:

ENOENT: no such file or directory, scandir '/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/vendor'
Error: ENOENT: no such file or directory, scandir '/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/vendor'
    at Error (native)
    at Object.fs.readdirSync (fs.js:952:18)
    at Object.getInstalledBinaries (/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/lib/extensions.js:124:13)
    at foundBinariesList (/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/lib/errors.js:20:15)
    at foundBinaries (/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/lib/errors.js:15:5)
    at Object.module.exports.missingBinary (/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/lib/errors.js:45:5)
    at module.exports (/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/lib/binding.js:15:30)
    at Object.<anonymous> (/home/travis/build/blimmer/ember-cli-example-app-for-github/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

I noticed this on my project, ember-appboy with this PR: https://github.com/blimmer/ember-appboy/pull/42

So I tried it with the default blueprint and experienced the same issue.

Proof of bad build:

https://travis-ci.org/blimmer/ember-cli-example-app-for-github/builds/234425340

Code: https://github.com/blimmer/ember-cli-example-app-for-github/tree/bug/show-issue-with-nodesass

https://github.com/blimmer/ember-cli-example-app-for-github/commit/e4dad0ac2879ed8dc4e3ebd556fabfeb1be41a8b

Version info:

 /tmp/ember-try-test   bug/show-issue-with-nodesass  ember version --verbose && npm --version && yarn --version
ember-cli: 2.13.2
http_parser: 2.7.0
node: 4.8.2
v8: 4.5.103.46
uv: 1.9.1
zlib: 1.2.11
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2k
os: darwin x64
4.6.1
0.24.5

Repro steps:

ember addon foo-bar --yarn true
cd foo-bar
ember install ember-cli-sass
# create tests/dummy/app/styles/app.scss with any content
# push to travis so it'll build

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kategenglercommented, May 23, 2017

Still looking into this, but for reference: That error is seen if initial install is done with yarn install --no-lockfile It is not seen if install is done with the lockfile yarn install

0reactions
blimmercommented, Jun 25, 2017

Confirmed that 0.27.0 fixes the issue. To fix the issue, I had to explicitly install that version in CI until this is a stable release.

https://github.com/blimmer/ember-appboy/pull/42/commits/b0ee2c6bb8fc27a20c46276550ae883f98afa742

Read more comments on GitHub >

github_iconTop Results From Across the Web

ember-cli-sass | Yarn - Package Manager
onlyIncluded : true/false whether to use only what is in app/styles and includePaths . This may helps with performance, particularly when using NPM...
Read more >
Ember CLI
i am trying to ember serve one app but it is throwing above error. ... “description”: “The default blueprint for ember-cli addons.
Read more >
gavant-ember-validations - npm package - Snyk
gavant-ember-validations. v1.1.1. The default blueprint for ember-cli addons. For more information about how to use this package see README.
Read more >
ember-cli-bootstrap3-sass
Understand that this addon is for Ember applications that are ... of the ember-cli-sass Ember Addon is installed in your Ember-App. In ...
Read more >
ember-material-design-datepicker - npm
Sass is required for this addon. There are a number of sass variables that can easily be overidden to change the default styling...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found