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
Bogus "target selector not found" error with meta.load-css() #3322
Comments
It's hard to tell what's going on here without a full Sass file that reproduces the issue. |
It's in an open-source repo fortunately: |
Can you provide me a stand-alone file that reproduces the error? |
|
I am also having this problem, but I was able to distill @dmt0 setup to simplest terms and make it replicable. It seems to be some combination of I know it doesn't make much sense to If we are not using the system as expected I think at the very least we could get a more accurate error message than |
I've simplified the reproduction a little more—it looks like the mixin isn't necessary. Here's the smallest reproduction I've found so far: // index.scss
@use 'sass:meta';
@use 'target';
@include meta.load-css('extender'); // extender.scss
@use 'target';
.extender {
@extend .target;
} // _target.scss
@use 'midstream';
.target {x: y} // _midstream.scss
@use 'upstream'; // _upstream.scss
@x; It only reproduces if |
I haven't fully excavated this yet, but I think the issue here is that we're sharing the same instance of I've confirmed that if I add |
Fixed by sass/dart-sass#1824 |
Currently this produces an error:
Bumped into this after upgrading from Ruby Sass to current version
"sass": "1.52.1"
The text was updated successfully, but these errors were encountered: