cotes2020 / jekyll-theme-chirpy

A minimal, responsive, and feature-rich Jekyll theme for technical writing.
https://chirpy.cotes.page
MIT License
7.1k stars 5.63k forks source link

Deprecation Warning: Sass's behavior #1875

Closed unbreakabl3 closed 1 month ago

unbreakabl3 commented 1 month ago

Checklist

How did you create the site?

Generated from chirpy-starter

Describe the bug

Started to get a few of these errors when running JEKYLL_ENV=production bundle exec jekyll serve --open-url --livereload --watch. All the errors related to *.scss files.

Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.

More info: https://sass-lang.com/d/mixed-decls

    ╷
99  │ ┌   .dark {
100 │ │     display: none;
101 │ │   }
    │ └─── nested rule
... │
106 │     --categories-icon-hover-color: darkslategray;
    │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declaration
    ╵
    /Users/user/_sass/colors/typography-light.scss 106:3  light-scheme()
    /Users/user/_sass/addon/commons.scss 7:7              @import
    /Users/user/_sass/main.scss 7:9                       @import
    main.bundle.scss 2:9                                                                                    @import
    /Users/user/assets/css/jekyll-theme-chirpy.scss 1:9   root stylesheet

Steps To Reproduce

Run JEKYLL_ENV=production bundle exec jekyll serve --open-url --livereload --watch

Expected Behavior

There are should not be an errors

Environment

Anything else?

No response

cotes2020 commented 1 month ago

Thank you for your report. I will find time to investigate this issue.

dr34mhacks commented 1 month ago

Facing the same error would love to know if there is any update.

kinesis19 commented 1 month ago

I hvae same problem T.T

In my case following: Add rouge

gem install rouge

When I install rouge, And build jekyll I get the same problem(Sass's)