The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

项目信息 详细信息
产品分类 uniapp/App
PC开发环境操作系统 Windows
PC开发环境操作系统版本号 win10
手机系统 iOS
手机系统版本号 iOS 18
手机厂商 苹果
手机机型 没有关系
页面类型 vue
vue版本 vue3
打包方式 云端
项目创建方式 CLI
CLI版本号 3.9.5

操作步骤:

  • 正常运行

预期结果:

  • 正常

实际结果:

  • 不正常

bug描述:


更多关于The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.的实战教程也可以访问 https://www.itying.com/category-92-b0.html

2 回复

更多关于The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.的实战系列教程也可以访问 https://www.itying.com/category-92-b0.html


这是一个关于Dart Sass弃用旧版JS API的警告提示,不是uni-app本身的bug。这个警告表明项目中使用的Sass编译器版本即将移除对旧版JS API的支持。

在uni-app项目中,这通常是由于以下原因导致的:

  1. 项目依赖的sass/sass-loader版本较旧
  2. 使用了不兼容的Sass语法

解决方案:

  1. 升级项目中的sass相关依赖:
npm update sass sass-loader
回到顶部