Open ZenCocoon opened 9 years ago
I've tried to remove broccoli-sass
and user ember-cli-sass
instead and get the following errors:
$ ember s
The package `ember-data` is not a properly formatted package, we have used a fallback lookup to resolve it at `/Users/seb/code/training/ember/test-bootstrap-sass/node_modules/ember-data`. This is generally caused by an addon not having a `main` entry point (or `index.js`).
version: 0.2.0
The package `ember-data` is not a properly formatted package, we have used a fallback lookup to resolve it at `/Users/seb/code/training/ember/test-bootstrap-sass/node_modules/ember-data`. This is generally caused by an addon not having a `main` entry point (or `index.js`).
Livereload server on port 35729
Serving on http://localhost:4200/
File: /Users/seb/code/training/ember/test-bootstrap-sass/tmp/tree_merger-tmp_dest_dir-lgvA3X82.tmp/app/styles/app.scss (1)
file to import not found or unreadable: bootstrap
Current dir: /Users/seb/code/training/ember/test-bootstrap-sass/tmp/tree_merger-tmp_dest_dir-lgvA3X82.tmp/app/styles/
This sample app can be found at https://github.com/ZenCocoon/test-bootstrap-sass
I ended up finding a solution with https://github.com/ZenCocoon/test-bootstrap-sass/commit/5f1707559c04e2ad768897aecb438b0135ac8f6b but that looks really unfriendly.
Any clue how to make this better?
:+1: same problem here.. Setting up ENV.sassOptions
helped, but it feels dirty :-1:
I'm having the same issue but I can seem to get the temp fix to work. Did you change anything in your Brocfile or anywhere else? This is my environment.js
:
module.exports = function(environment) {
var ENV = {
modulePrefix: 'connect-app',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
// config/environment.js
APP: {
// Here you can pass flags/options to your application instance
// when it is created
}
};
/**
* Temporary fix for errors after updating cli to v0.2.x. This should be fixed
* in the future.
*/
ENV.sassOptions = {
includePaths: [
'node_modules/ember-cli-bootstrap-sass/vendor/bootstrap-sass-official/assets/stylesheets/'
]
};
bump
@daltonamitchell @ZenCocoon @cameronlinden I've had the same issue as you guys. After scouring the internet for solutions, my conclusion was that this repo looks kinda dead. No updates or issue comments for 4 months or so
By removing ember-cli-bootstrap-sass from my project all-together and installing the forked and currently maintained ember-cli-bootstrap-sassy (https://github.com/lifegadget/ember-cli-bootstrap-sassy) and using an older brocolii-sass (0.3.3) due to an error in the current node-sass that prevents compilation (https://github.com/twbs/bootstrap-sass/issues/879), I got this to run.
Hope this helps!
I think core the reason this is failing is because ember-cli-sass
doesn't include this.app.options.sassOptions
the way it used to (despite what the docs say). This plugin relies on that functionality. More info here.
On a new project, I just added
broccoli-sass
andember-cli-bootstrap-sass
error while running
ember s
:package.js