dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

Update scss files because of deprecated slash as division

Open alec-c4 opened this issue 4 years ago • 2 comments

Hey! I'd like to notice about breaking changes in sass compiler - https://sass-lang.com/documentation/breaking-changes/slash-div

It causes warnings like

webpack | DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
webpack |
webpack | Recommendation: math.div($image-width, 2)
webpack |
webpack | More info and automated migrator: https://sass-lang.com/d/slash-div
webpack |
webpack |     ╷
webpack | 286 │       margin-left: -($image-width/2);
webpack |     │                      ^^^^^^^^^^^^^^
webpack |     ╵
webpack |     node_modules/dropzone/src/dropzone.scss 286:22  @import
webpack |     app/frontend/stylesheets/application.scss 5:9   root stylesheet
webpack |
webpack | DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
webpack |
webpack | Recommendation: math.div($image-height, 2)
webpack |
webpack | More info and automated migrator: https://sass-lang.com/d/slash-div
webpack |
webpack |     ╷
webpack | 287 │       margin-top: -($image-height/2);
webpack |     │                     ^^^^^^^^^^^^^^^
webpack |     ╵
webpack |     node_modules/dropzone/src/dropzone.scss 287:21  @import
webpack |     app/frontend/stylesheets/application.scss 5:9   root stylesheet
webpack |
webpack | DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
webpack |
webpack | Recommendation: math.div($width, 2)
webpack |
webpack | More info and automated migrator: https://sass-lang.com/d/slash-div
webpack |
webpack |     ╷
webpack | 386 │         left: $width / 2 - 6px;
webpack |     │               ^^^^^^^^^^
webpack |     ╵
webpack |     node_modules/dropzone/src/dropzone.scss 386:15  @import
webpack |     app/frontend/stylesheets/application.scss 5:9   root stylesheet
webpack |
webpack | ℹ 「wdm」: Hash: 6c49a6398fb8b7b2a9cb
webpack | Version: webpack 4.46.0

alec-c4 avatar Jul 13 '21 21:07 alec-c4

Any news on this? is quite an easy fix

lebadapetru avatar Aug 14 '21 17:08 lebadapetru

Getting this error myself, but looking into it seems that it has been fixed for version 6: https://github.com/dropzone/dropzone/commit/2ab07cc664259e04fa724af75f139d2456e4a22d

johnvanham avatar Jun 01 '22 10:06 johnvanham