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
selector-exist NPI error #2345
Comments
Hey. I have the same problem. I think is related to where you place the selector-exists function. It works if the function is the last thing on the file but not if is in the middle of the code. |
I ran the same error too ! It's an old issue, can someone look at it please? |
ran into the same issue, even confirmed it on https://stylus-lang.com/try.html code I used to test on https://stylus-lang.com/try.html :
works:
|
If you run that exact example in a styl file...
http://stylus-lang.com/docs/bifs.html#selector-existsselector
Stylus compiled within web-pack in a vuejs project:
`Module build failed: TypeError: /Users/n/Documents/Code/web-client/src/vars.styl:18:23
14|
15| a
16| font-size 12px
17|
18| selector-exists('.foo') // true
-----------------------------^
19| selector-exists('.foo a') // true
20|
Cannot read property 'indexOf' of undefined
The text was updated successfully, but these errors were encountered: