Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass::SyntaxError: Undefined mixin 'trailer'. #4

Closed
maxim opened this issue Aug 17, 2010 · 5 comments
Closed

Sass::SyntaxError: Undefined mixin 'trailer'. #4

maxim opened this issue Aug 17, 2010 · 5 comments

Comments

@maxim
Copy link

maxim commented Aug 17, 2010

Trying to compile nanoc project with compass+susy I keep getting "Sass::SyntaxError: Undefined mixin 'trailer'." when trying to compile default templates that come with susy. Susy seems to be imported fine, but the trailer thing is not.

@maxim
Copy link
Author

maxim commented Aug 18, 2010

Just found out it doesn't see a bunch of susy mixins... And doesn't complain on import still.

@mirisuzanne
Copy link
Member

Are you sure that any part of susy is being imported properly? Do you have "require 'susy'" in your congig.rb file? I don't know anything about nanoc, but removing the 'require' line from config.rb replicates your error.

@maxim
Copy link
Author

maxim commented Aug 18, 2010

This was my issue. Asked Chris Eppstein, turns out didn't even have require 'susy' in my config.rb.

@stephencarr
Copy link

I just updated Compass to 0.11.1 with a simple gem update and now I am getting the following errors on compile:

WARNING: The 'susy/susy' import is deprecated. Instead: simply import 'susy'.
        on line 1 of /Library/Ruby/Gems/1.8/gems/compass-susy-plugin-0.9/lib/../sass/susy/_susy.scss
        from line 20 of /Users/stephencarr/Dropbox/Sites/nslocal/nslocal.com/src/_base.scss
        from line 10 of /Users/stephencarr/Dropbox/Sites/nslocal/nslocal.com/src/_defaults.scss
        from line 5 of /Users/stephencarr/Dropbox/Sites/nslocal/nslocal.com/src/screen.scss
    error src/screen.scss (Line 81: Undefined mixin 'trailer'.)

So, I changed the import to simply say 'susy' but it still complains about (Line 81: Undefined mixin 'trailer'.).

I definitely have the require 'susy' in my config :(

@stephencarr stephencarr reopened this Apr 26, 2011
@mirisuzanne
Copy link
Member

Yep. The 'trailer' mixin comes from Compass, not Susy. So you're getting Susy just fine. Add a compass import and you'll be all set:

@import "compass";

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants