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

Unknown unit 'phone' or any other sass variable I try #30

Closed
kjs3 opened this issue Mar 31, 2015 · 6 comments
Closed

Unknown unit 'phone' or any other sass variable I try #30

kjs3 opened this issue Mar 31, 2015 · 6 comments
Labels

Comments

@kjs3
Copy link

kjs3 commented Mar 31, 2015

I'm getting "Unknown unit x" anytime I try to pass a sass var (phone, tablet, etc.) to the media mixin.

This is literally all my sass:

@import "include-media";

@include media(">phone") {
  body {
    background-color: red;
  }
}

and here's the output I get when compiling:

WARNING: Unknown unit `phone`.
    on line 342 of bower_components/include-media/dist/_include-media.scss
    from line 314 of bower_components/include-media/dist/_include-media.scss
    from line 222 of bower_components/include-media/dist/_include-media.scss
    from line 112 of bower_components/include-media/dist/_include-media.scss
    from line 29 of stdin

If I pass a px value it works fine.

Any idea what's going on here?

This is using node-sass 3.0.0-beta.4 which uses libsass 3.2.0-beta.2

@gavinmcfarland
Copy link

I think I'm having a similar issue. This is the error I get

$number: false is not a number for 'unit' on line 227 of include_media.scss

@eduardoboucas
Copy link
Owner

Are you still experiencing these issues?

@KittyGiraudel
Copy link
Collaborator

Ping @kjs3 and @sevenupcan: is this still happening on your side after you updated the lib? :)

@KittyGiraudel
Copy link
Collaborator

It's been 2 months. Shall we close?

@eduardoboucas
Copy link
Owner

Closing. @kjs3 and @sevenupcan, please give us a shout if you're still experiencing this problem.

@kjs3
Copy link
Author

kjs3 commented Jun 18, 2015

Sorry, I finally got around to reevaluating this and it's all good now.
Thanks.

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

No branches or pull requests

4 participants