Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Compass isn’t configured properly when chosen as preprocessor #22

Open
sergeh opened this issue May 1, 2014 · 4 comments
Open

Compass isn’t configured properly when chosen as preprocessor #22

sergeh opened this issue May 1, 2014 · 4 comments
Labels

Comments

@sergeh
Copy link

sergeh commented May 1, 2014

Running grunt after generating init yields an error

Warning: Task "sass:dev" not found. Use --force to continue.
Aborted due to warnings.

In fact getting that error for anything related to sass
Any ideas what could be causing this?

@anselmh
Copy link
Member

anselmh commented May 1, 2014

Hi, just to verify: Do you have ruby sass installed on your machine?

@anselmh
Copy link
Member

anselmh commented May 1, 2014

As a follow up question: Did you choose Sass as preprocessor or something else? Not getting any issues when Sass (default) is selected.

@sergeh
Copy link
Author

sergeh commented May 1, 2014

@anselmh I do have ruby sass installed and I chose Compass as the preprocessor
Sass 3.3.6 (Maptastic Maple)
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
Compass 0.12.6 (Alnilam)

I just tried using the default Sass with the generator and I'm getting this error after running grunt

Linting test/specs/example.spec.js ...ERROR
[L8:C44] W098: 'module' is defined but never used.
define(['modules/module'], function (module) {
Warning: Task "jshint:all" failed. Use --force to continue.
Aborted due to warnings.

@anselmh
Copy link
Member

anselmh commented May 1, 2014

Well, the second one is not an error with the app itself but only says you will have to either remove the module or use the module (see JSHint config and RequireJS docs).
This leads us to the follow up conclusion that the initial issue you have is with Compass chosen as preprocessor. I see the issue now, as compass is not using the same sass module but its own and needs a different grunt task configuration in INIT. For now, you can only fix this yourself by including the compass dependency and write the task partial yourself.
I’ll update the issue regardingly so we can keep track of this or fix it. Also, feel free to open a pull request to fix this. :)

@anselmh anselmh changed the title Running grunt gives error Compass isn’t configured properly when chosen as preprocessor May 1, 2014
@anselmh anselmh added the bug label May 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants