Closed lessless closed 9 years ago
Also upgraded to Ember CLI 0.2.0-beta.1 and running into this issue. Please help!
Okay, this only happens when your project uses both ember-cli-compass-compiler
and broccoli-sass
.
Removing broccoli-sass
resolved the issue for me.
This problem is being tracked here: https://github.com/ember-cli/ember-cli/issues/2363
Also, this Ember CLI changelog note is relevant to the upgrade to Ember CLI 0.2.0-beta.1:
Usage of the
included
hook to add items to the registry will need to be refactored to use the newly addedsetupPreprocessorRegistry
hook instead.
@lolmaus I am glad your issue is solved. It was mentioned in the README.
@lessless Is this fixed for you as well?
@quaertym, this kinda means that ember-cli-compass-compiler
makes the project incompatible with all addons using broccoli-sass
, and there are quite a few of them.
I hope i'm wrong...
Somehow, having both ember-cli-compass-compiler
and broccoli-sass
in one project works for me again. My main stylesheet is compiled with Compass and an addon's stylesheet is compiled with libsass.
PS I'm on Ember CLI 0.2.0.
@lolmaus It can be due to recent improvements in ember-cli that allows addons to have their own preprocessors. It would be great if we can link here related pull requests. Then we can close this.
Not until https://github.com/ember-cli/ember-cli/issues/2363 is fixed.
Also, ember-cli-notifications
, the addon i'm using that relies on broccoli-sass
literally has no code specific to the preprocessor. It only has an app/styles
folder with some Sass code and it mentions broccoli-sass
in package.json
's devDependencies
(and thus, assumes the user manually requires broccoli-sass
in his project's package.json
).
I wonder why ember-cli-compass-compiler
does not compile that addon's Sass.
@lolmaus @quaertym what about this workaround https://github.com/ember-cli/ember-cli/issues/2363#issuecomment-62434753?
@lolmaus ember-cli-compass-compiler
only compiles files under app/styles/
it does nothing about addon's sass files. If it is possible for addons to use their own preprocessors, addon developers can use ember-cli-compass-compiler
inside their addons then..
@lessless That could work but every addon that depends on broccoli-sass
should implement it.
Hello! Today I tried to update to ember-cli-0.2-beta.1 and encountered an error
though i renamed xk21.scss to app.scss