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

Syntax error: No method visitExtend #5

Open
Cactusbone opened this issue Oct 9, 2019 · 1 comment
Open

Syntax error: No method visitExtend #5

Cactusbone opened this issue Oct 9, 2019 · 1 comment

Comments

@Cactusbone
Copy link

Cactusbone commented Oct 9, 2019

I'm getting the error Syntax error: No method visitExtend on
@extend $someVariable

$someVariable is defined in another file, imported earlier in the checked file

$someVariable
  line-height normal
@rakov-di
Copy link

rakov-di commented Aug 14, 2020

I have the same problem with using @extend in any usecase (even if this directive and placeholder selectors are in the same file).

// --- file.styl
$plhSelector
  width: 100px

.mySelector
  @extend $plhSelector

The same problem when i use common selector instead of placeholder selector:

// --- file.styl
.commonSelector
  width: 100px

.mySelector
  @extend .commonSelector

stlint directives @stlint-ignore/@stlint-disable/@stlint-enable don't help to ignore this error.

Is there any way to use @extend and stlint simultaneously?

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

2 participants