SassC::SyntaxError: Error: You may not @extend selectors across media queries
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 2k
- Forks
- 437
- Avg merge
- 1h
- Merged PRs (30d)
- 1
Description
bootstrap-4.5.0
sassc-2.4.0
ruby-2.6.6
rails-5.2.4.3
SassC::SyntaxError: Error: You may not @extend selectors across media queries.
Use "@extend %responsive-container-xl !optional" to avoid this error.
on line 62:7 of vendor/bundle/ruby/2.6.0/gems/bootstrap-4.5.0/assets/stylesheets/bootstrap/mixins/_breakpoints.scss, in mixin `media-breakpoint-up`
from line 23:14 of vendor/bundle/ruby/2.6.0/gems/bootstrap-4.5.0/assets/stylesheets/bootstrap/_grid.scss
from line 16:9 of vendor/bundle/ruby/2.6.0/gems/bootstrap-4.5.0/assets/stylesheets/_bootstrap.scss
I think here
https://github.com/twbs/bootstrap-rubygem/blob/v4.5.0/assets/stylesheets/bootstrap/_grid.scss#L34
we are using @extend, inside @media
https://github.com/twbs/bootstrap-rubygem/blob/v4.5.0/assets/stylesheets/bootstrap/mixins/_breakpoints.scss#L61
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with assets/stylesheets/bootstrap/_grid.scss around line 34 and mixins/_breakpoints.scss around line 61, then reproduce the reported SassC compilation error with the listed Bootstrap 4.5.0, SassC 2.4.0, Ruby 2.6.6, and Rails 5.2.4.3 versions. Done means the stylesheet compiles without the cross-media-query @extend error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby, scss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100