需要使用 `@use’
发布时间:2025-06-24 17:09:51 作者:北方职教升学中心 阅读量:179
Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.More info: https://sass-lang.com/d/legacy-js-api。}。-g sass-migrator$ sass-migrator module --migrate-deps。
- 修改方法:。install。>
3. Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.。:。
@import。
sass 1.80 不再支持老的 js api 接口。,}。`@use "@/variables.scss" as *;`,// 导出全局变量和 mixin。
- 错误提示:。
sass 1.80 全球内置函数不再支持。
- 修改方法:。
- 错误提示:。;
Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.Use string.slice instead.More info and automated migrator: https://sass-lang.com/d/import ╷8 │ flex-direction: map-get($flex-fds, str-slice($str, 1, 1)); │ ^^^^^^^^^^^^^^^^^^^^^ ╵。defineConfig。
:。
Deprecation Warning on line 1, column 9 of src\About.vue: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 "@/variables.scss"; │ ^^^^^^^^^^^^^^^^^^。}。additionalData。)。
- 修改方法:。
npm。default。 <YOUR-ENTRYPOINT.scss。,..。,}。(。{。
vue.config.js。
- 错误提示:。
@use "@/variables.scss";
2. Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.。export。1. Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0。- 错误提示:。
需要使用 `@use’。
- 修改方法。
export。1. Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0。- 错误提示:。
需要使用 `@use’。sass 1.80 不再支持。