Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wzh5550123 opened this issue Oct 23, 2024 · 22 comments

Comments

@wzh5550123
Copy link

今天写着写着莫名其妙的提示我scss的api被弃用,麻烦作者更新一下scss的api,我自己改实在无能为力,退版本也报错,
Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\pages\index\index.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\pages\buy_list\index.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\pages\search\index.vue 80:9 root stylesheet

[plugin:vite:css] [vite:css] [postcss] postcss-import: C:\Users\wzh55\Desktop\shop_adv_project\node_modules\uview-plus\index.scss:1:1: Unknown word
file: C:/Users/wzh55/Desktop/shop_adv_project/src/App.vue?vue&type=style&index=0&lang.css:1:1
at App.vue:1:1
Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\pages\detail\index.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\pages\search_list\index.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Home_swiper\Home_swiper.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Home_heard\Home_heard.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Home_grid\Home_grid.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Home_list\Home_list.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Buy_list_heard\Buy_list_heard.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Shop_car\index.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Buy_list_list\Buy_list_list.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-button\u-button.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-button\u-button.vue 82:9 root stylesheet

Deprecation Warning: 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


85 │ @import "./vue.scss";
│ ^^^^^^^^^^^^

node_modules\uview-plus\components\u-button\u-button.vue 85:9 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-button\u-button.vue 82:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\search_list\search_list.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-notice-bar\u-notice-bar.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-notice-bar\u-notice-bar.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-search\u-search.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-search\u-search.vue 82:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-tag\u-tag.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-tag\u-tag.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-notice-bar\u-notice-bar.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

src\components\Car_list\Car_list.vue 80:9 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-search\u-search.vue 82:9 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-tag\u-tag.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-swiper\u-swiper.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-swiper\u-swiper.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-swiper\u-swiper.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-loadmore\u-loadmore.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-loadmore\u-loadmore.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-image\u-image.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import '../../libs/css/components.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-image\u-image.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-popup\u-popup.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-popup\u-popup.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-loadmore\u-loadmore.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-image\u-image.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-popup\u-popup.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-loading-icon\u-loading-icon.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-loading-icon\u-loading-icon.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-action-sheet\u-action-sheet.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-action-sheet\u-action-sheet.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-text\u-text.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import '../../libs/css/components.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-text\u-text.vue 82:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-icon\u-icon.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-icon\u-icon.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-loading-icon\u-loading-icon.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-action-sheet\u-action-sheet.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-column-notice\u-column-notice.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-column-notice\u-column-notice.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-row-notice\u-row-notice.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-row-notice\u-row-notice.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-text\u-text.vue 82:9 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-icon\u-icon.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-column-notice\u-column-notice.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-row-notice\u-row-notice.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-swiper-indicator\u-swiper-indicator.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-swiper-indicator\u-swiper-indicator.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-transition\u-transition.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import '../../libs/css/components.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-transition\u-transition.vue 82:9 root stylesheet

Deprecation Warning: 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


86 │ @import './vue.ani-style.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-transition\u-transition.vue 86:9 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-swiper-indicator\u-swiper-indicator.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-line\u-line.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-line\u-line.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-safe-bottom\u-safe-bottom.vue 80:9 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-transition\u-transition.vue 82:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-status-bar\u-status-bar.vue 80:9 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-overlay\u-overlay.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-overlay\u-overlay.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-line\u-line.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-gap\u-gap.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-gap\u-gap.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-overlay\u-overlay.vue 82:10 root stylesheet

Deprecation Warning: 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


80 │ @import 'uview-plus/theme.scss'; // 引入uview-plus主题
│ ^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-link\u-link.vue 80:9 root stylesheet

Deprecation Warning: 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


82 │ @import "../../libs/css/components.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\components\u-link\u-link.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-gap\u-gap.vue 82:10 root stylesheet

Deprecation Warning: 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 "./mixin.scss";
│ ^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\components.scss 1:9 @import
node_modules\uview-plus\components\u-link\u-link.vue 82:10 root stylesheet

@caozhiming20
Copy link

18 │ @import "./libs/css/mp.scss";
│ ^^^^^^^^^^^^^^^^^^^^

node_modules\uview-plus\index.scss 18:9 @use
src\App.vue 79:1 root stylesheet

[plugin:vite:css] Undefined variable.

40 │ border-color: $u-border-color!important;
│ ^^^^^^^^^^^^^^^

node_modules\uview-plus\libs\css\common.scss 40:16 @import
node_modules\uview-plus\index.scss 2:9 @use
src\App.vue 79:1 root stylesheet

遇到同样的问题,dart-sass 1.80.4 sass-loader 10

@asd123a3
Copy link

"sass": "^1.63.2",
"sass-loader": "^10.4.1", 版本锁住就OK了

@datasre
Copy link

datasre commented Nov 8, 2024

"sass": "^1.63.2", "sass-loader": "^10.4.1", 版本锁住就OK了

回到这个版本还是一样的报错
image
image

@wzh5550123
Copy link
Author

这个还是要作者更新一个支持最新版sass的分支才能解决的感觉😶‍🌫️

@hehepeng
Copy link

作者啥时候更新一个支持最新版sass的版本

@ijry
Copy link
Owner

ijry commented Nov 11, 2024

由于@import@use是破坏式更新无法顺滑升级,所以建议固定sass版本来避免报警。如果未生效,请检查node_modules里的实际安装版本是否式1.60。

@ijry ijry closed this as completed Nov 11, 2024
@ijry ijry pinned this issue Nov 11, 2024
@ijry ijry reopened this Nov 11, 2024
@wzh5550123
Copy link
Author

wzh5550123 commented Nov 12, 2024

image
我试过屏蔽,和退版本好像都不作用,我那天就是npm i了一下依赖,然后就开始突然报警告了,是不是官方把所有的版本里面都加了警告

@datasre
Copy link

datasre commented Nov 12, 2024

我亲测退版本有用,你检查一下你node_modules里的实际安装版本,或者直接干脆uninstall卸载sass 然后直接指定sass版本安装:pnpm install [email protected] 我目前使用的sass是1.62.1的版本

@wzh5550123
Copy link
Author

image
我刚刚删除了node_modules安装了 "sass": "^1.60",
"sass-loader": "^10.5.2",,还是一样报错

@wzh5550123
Copy link
Author

@datasre 你 "sass-loader": "^10.5.2",是什么版本

@datasre
Copy link

datasre commented Nov 12, 2024

@datasre 你 "sass-loader": "^10.5.2",是什么版本

image

@wzh5550123
Copy link
Author

wzh5550123 commented Nov 12, 2024

我刚刚查了,我全局没有安装C:\Users\xxxxx\Desktop\shop_adv_project - 副本>npm list -g sass
C:\Program Files\nodejs -> .
`-- (empty)
应该不是全局问题

@datasre
Copy link

datasre commented Nov 12, 2024

image 我刚刚删除了node_modules安装了 "sass": "^1.60", "sass-loader": "^10.5.2",,还是一样报错

你再次检查一下你node_modules里的实际安装版本,或者直接干脆uninstall卸载sass 然后直接指定sass版本安装:pnpm install [email protected]

@wzh5550123
Copy link
Author

好家伙我声明了1.62.1,给我装的是1.80.4
image

@wzh5550123
Copy link
Author

官方把老版本删除了?

@datasre
Copy link

datasre commented Nov 12, 2024

好家伙我声明了1.62.1,给我装的是1.80.4 image

是的 你用的^1.60 会自动升级到最新的1.x的最高版本

@datasre
Copy link

datasre commented Nov 12, 2024

直接指定版本安装就行了

@wzh5550123
Copy link
Author

我去yarn里看看有没有老版本

@wzh5550123
Copy link
Author

那一个不小心npm i一下,岂不是就警告了

@datasre
Copy link

datasre commented Nov 12, 2024

那一个不小心npm i一下,岂不是就警告了

不会啊 你npm install [email protected] 就指定版本了

@wzh5550123
Copy link
Author

wzh5550123 commented Nov 12, 2024

可以了

问题原因:

在删除node_modules时或者其他强制更新依赖的命令,npm会偷偷给你安装1.80以上的版本导致报错
你直接在package.json写版本号1.62.1,再npm i,也会给你偷偷安装1.80以上

解决方案:

1删除node_modules
2输入命令 来强制安装指定版本:
npm i [email protected]
npm i sass-loader@10 -D
然后
npm i

@LeeP3ng
Copy link

LeeP3ng commented Nov 20, 2024

install指定版本就行了,版本号前面不要加 “^”

@ijry ijry closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants