ember-try fails with default addon app + ember-cli-sass
See original GitHub issueWith 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
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:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 lockfileyarn install
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