テーマを移行する際のプラグイン「sass」のエラー「... is deprecated and will be removed in Dart Sass 2.0.0.」
Written By
Georgel Pop
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
問題
テーマを新しいバージョンに移行すると、次のタイプのエラーが発生する可能性があります。
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2) or calc($spacer / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
737 │ $navbar-padding-y: $spacer / 2 !default;
│ ^^^^^^^^^^^
╵
build/_css/clay/bootstrap/_variables.scss 737:37 @import
build/_css/clay/bootstrap/bootstrap.scss 9:9 @import
build/_css/clay/base.scss 7:9 @import
build/_css/clay.scss 1:9 root stylesheet
[09:24:43] 'build:compile-css' errored after 2.92 s
[09:24:43] Error in plugin "sass"
Message:
build/_css/compat/components/_dropdowns.scss
Error: compound selectors may no longer be extended.
Consider `@extend .dropdown-item, .disabled` instead.
See http://bit.ly/ExtendCompound for details.
╷
29 │ @extend .dropdown-item.disabled;
│ ^^^^^^^^^^^^^^^^^^^^^^^