npm run build 時のDeplicate error を修正 #6248
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
npm run build 実行したところ、
calc()以外での除算のための/の使用は非推奨であり、Dart Sass 2.0.0で削除される予定です。
とのこと非推奨エラーを検出したため、修正しました。
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
追記:2024/07/09 14:40 エラー検出した 下記についてもfixしました。
自身のMac情報
エラー内容
概要(Overview・Refs Issue)
エラー出力された詳細の
More info and automated migrator: https://sass-lang.com/d/slash-div
よりSassの公式ドキュメント引用
方針(Policy)
@use "sass:math";
の使用と、該当箇所をmath.div(xxx, xxx)
の形式に変更しました。引用URL https://sass-lang.com/documentation/breaking-changes/slash-div/#transition-period
実装に関する補足(Appendix)
テスト(Test)
実行結果
相談(Discussion)
マイナーバージョン互換性保持のための制限事項チェックリスト
レビュワー確認項目