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

DEPRECATION WARNING: Using / for division outside of calc() is deprecated #320

Open
Gorlenah opened this issue Jan 24, 2023 · 3 comments
Open

Comments

@Gorlenah
Copy link

This is part of the compilation warning :

14:58:22.395 Configuration file: /opt/buildhome/repo/_config.yml
14:58:22.418 Source: /opt/buildhome/repo
14:58:22.418 Destination: /opt/buildhome/repo/_site
14:58:22.418 Incremental build: disabled. Enable with --incremental
14:58:22.418 Generating...
14:58:22.473 Jekyll Feed: Generating feed for posts
14:58:22.856 DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
14:58:22.856  
14:58:22.856 Recommendation: math.div($spacer, 2) or calc($spacer / 2)
14:58:22.856  
14:58:22.856 More info and automated migrator: https://sass-lang.com/d/slash-div
14:58:22.857  
14:58:22.857
14:58:22.857 302 │ $headings-margin-bottom: $spacer / 2 !default;
14:58:22.857 │ ^^^^^^^^^^^
14:58:22.857
14:58:22.857 ../../../../jekyll-theme-clean-blog-4.0.12/assets/vendor/bootstrap/scss/_variables.scss 302:31 @import
14:58:22.857 ../../../../jekyll-theme-clean-blog-4.0.12/assets/vendor/bootstrap/scss/bootstrap.scss 9:9 @import
14:58:22.857 ../assets/vendor/startbootstrap-clean-blog/scss/styles.scss 5:9 @import
14:58:22.858 styles.scss 2:9 @import
14:58:22.858 /opt/buildhome/repo/assets/main.scss 1:9 root stylesheet
14:58:22.859 DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
.
.
14:58:23.047 WARNING: 64 repetitive deprecation warnings omitted.

My solution:

Since it seemed to be solely due to bootstrap, I tried implementing the latest version of bootstrap (now 5.3.0), changing assets -> vendor -> bootstrap -> scss

Replacing the entire folder with the new version, so far I am not noticing any problems

After the upgrade I no longer have any compilation warnings

@Gorlenah
Copy link
Author

Gorlenah commented Jan 24, 2023

After upgrading bootstrap, the theme does not work graphically correctly, so I migrated the bootstrap version used by this repository.

I had to edit some files manually, but the majority was done using the automatic migration tool.

In my fork there is the fix, waiting for the merge

@BasedLukas
Copy link

I have the same issue

@Gorlenah
Copy link
Author

Gorlenah commented Jul 5, 2023

I have the same issue

Another user and I are using my fix, in my fork there is only this fix, you can try it and leave feedback

My Pending Pull Request

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