plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

[BUG]: `@import` is deprecated

Open jendrikw opened this issue 2 months ago • 1 comments

Description

When using import "plotly.js/src/css/style.scss" in my code (using vite), I get a lot of deprecation warnings:

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

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

  ╷
1 │ @import "vars.scss";
  │         ^^^^^^^^^^^
  ╵
    ../../../plotly.js/src/css/style.scss 1:9  root stylesheet

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

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

  ╷
4 │     @import "mixins.scss";
  │             ^^^^^^^^^^^^^
  ╵
    ../../../plotly.js/src/css/style.scss 4:13  root stylesheet

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

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

  ╷
5 │     @import "base.scss";
  │             ^^^^^^^^^^^
  ╵
    ../../../plotly.js/src/css/style.scss 5:13  root stylesheet

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

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

  ╷
6 │     @import "cursor.scss";
  │             ^^^^^^^^^^^^^
  ╵
    ../../../plotly.js/src/css/style.scss 6:13  root stylesheet

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

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

  ╷
7 │     @import "modebar.scss";
  │             ^^^^^^^^^^^^^^
  ╵
    ../../../plotly.js/src/css/style.scss 7:13  root stylesheet

Steps to reproduce

https://stackblitz.com/edit/vitest-dev-vitest-k9muhcrx?file=package.json

Notes

Add info here that doesn't fit in the other sections.

jendrikw avatar Oct 17 '25 13:10 jendrikw

Thanks for the bug report! This will get added to our backlog, but probably won't get any attention for a while. If you create a PR to update the SASS syntax, we could get someone to review it a lot sooner.

camdecoster avatar Oct 21 '25 16:10 camdecoster