TransparentLC / cloud-clipboard

在局域网内自用的在线剪贴板,支持传输纯文本和文件
https://try-clipboard.akarin.dev/
MIT License
320 stars 50 forks source link

build WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. #55

Closed yurenchen000 closed 3 weeks ago

yurenchen000 commented 3 weeks ago

lots of warnings each time build frontend.

https://github.com/TransparentLC/cloud-clipboard/actions/runs/11761624667/job/32763590293#step:4:16359

DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($grid-gutter, 3) or calc($grid-gutter / 3)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
65 │     'md': $grid-gutter / 3,
   │           ^^^^^^^^^^^^^^^^
   ╵
    node_modules/vuetify/src/styles/settings/_variables.scss 65:11                      @import
    node_modules/vuetify/src/styles/settings/_index.sass 1:9                            @import
    node_modules/vuetify/src/styles/styles.sass 2:9                                     @import
    node_modules/vuetify/src/components/VCalendar/mixins/calendar-with-events.sass 1:9  root stylesheet

https://stackoverflow.com/a/67647496/4896468 seems solution is

yurenchen000 commented 3 weeks ago

seems this patch can fix it #56 // Not sure if any side effects

index 835f900..dcd7bcf 100644
--- a/client/package.json
+++ b/client/package.json
@@ -24,7 +24,7 @@
     "cross-env": "^7.0.3",
     "fs-extra": "^11.2.0",
     "glob": "^11.0.0",
-    "sass": "~1.32.12",
+    "sass": "~1.79.5",
     "sass-loader": "^10.5.2",
     "typeface-roboto": "^1.1.13",
     "vue-cli-plugin-vuetify": "^2.5.8",