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

Cannot compile: "Base-level rules cannot contain the parent-selector-referencing character '&'." #145

Closed
heavior opened this issue Jun 16, 2016 · 8 comments
Assignees

Comments

@heavior
Copy link

heavior commented Jun 16, 2016

I'm trying to include hint.css and change its style, but cannot compile it using the compass:

Error: Base-level rules cannot contain the parent-selector-referencing character '&'.\A on line 18 of /bower_components/hint.css/src/hint-mixins.scss, in `arrow-border-color'\A from line 81 of /bower_components/hint.css/src/hint-position.scss\A from line 23 of /bower_components/hint.css/src/hint.scss\A from line 9

@chinchang
Copy link
Owner

chinchang commented Jul 19, 2016

Whats your node-sass version?

@heavior
Copy link
Author

heavior commented Jul 20, 2016

node-sass: 3.9.5
compass: 1.0.3

@d8vjork
Copy link

d8vjork commented Aug 28, 2016

Message:
    src\sass\hint\hint-always.scss
Error: Undefined variable: "$hintPrefix".
        on line 11 of src/sass/hint/hint-always.scss
>>                      @include set-margin('translateY', -1, -100%);

Same here, with gulp-sass, cannot compile

@chinchang chinchang self-assigned this Nov 6, 2016
@ErinPo
Copy link

ErinPo commented Mar 12, 2017

Error: Base-level rules cannot contain the parent-selector-referencing character '&'. on line 18 of hint-mixins.scss, inarrow-border-color'
from line 81 of hint-position.scss
from line 23 of hint.scss
Use --trace for backtrace.
`

Same here! Anyone figured out how to correct?

@chinchang
Copy link
Owner

chinchang commented Mar 14, 2017

I tried out with node-sass 4.5.0. Here is my test case - I made a file hello.scss and imported hint.scss in it:

@import './src/hint.scss';

This hello.scss compiled successfully.
@heavior @d8vjork @ErinPo is your use case same as mine or I am testing the wrong thing?

@ErinPo
Copy link

ErinPo commented Mar 14, 2017

I did

sudo gem install sass

and then

sass hint.scss hint.css

on MacOS with Sass 3.4.23 (Selective Steve)

@jptaylor
Copy link

jptaylor commented Mar 28, 2017

Seems to work with node-sass, but not the gem.

sass -v
Sass 3.4.23 (Selective Steve)

@chinchang chinchang added this to Bugs in Todo tracking Jul 16, 2017
@chinchang
Copy link
Owner

chinchang commented Nov 16, 2018

fixed in 2.5.1

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

No branches or pull requests

5 participants