Skip to content

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

@kityun

Description

@kityun

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.13

平台

h5

重现链接

@nutui/nutui-taro

重现步骤

taro 4.0.5
使用 taro init myapp
vue3
sass
webpack5

期望的结果是什么?

浏览器能正常打开使用

实际的结果是什么?

页面打开提示
Compiled with problems:
×
WARNING in ./src/app.scss (./node_modules/.pnpm/[email protected]_webpack@5.78.0_@swc[email protected]_/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[0]!./node_modules/.pnpm/[email protected][email protected][email protected]_webpack@5.78.0_@swc[email protected]_/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-5.use[0]!./node_modules/.pnpm/[email protected]/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/[email protected][email protected]_webpack@5.78.0_@swc[email protected]_/node_modules/sass-loader/dist/cjs.js??clonedRuleSet-7.use[1]!./src/app.scss)
Module Warning (from ./node_modules/.pnpm/[email protected][email protected]_webpack@5.78.0_@swc[email protected]_/node_modules/sass-loader/dist/cjs.js):
Deprecation 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

环境信息

"browserslist": [
"last 3 versions",
"Android >= 4.1",
"ios >= 8"
],
"author": "",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.25.6",
"@nutui/nutui-taro": "^4.3.13",
"@tarojs/components": "4.0.5",
"@tarojs/helper": "4.0.5",
"@tarojs/plugin-framework-vue3": "4.0.5",
"@tarojs/plugin-html": "4.0.5",
"@tarojs/plugin-platform-alipay": "4.0.5",
"@tarojs/plugin-platform-h5": "4.0.5",
"@tarojs/plugin-platform-jd": "4.0.5",
"@tarojs/plugin-platform-qq": "4.0.5",
"@tarojs/plugin-platform-swan": "4.0.5",
"@tarojs/plugin-platform-tt": "4.0.5",
"@tarojs/plugin-platform-weapp": "4.0.5",
"@tarojs/runtime": "4.0.5",
"@tarojs/shared": "4.0.5",
"@tarojs/taro": "4.0.5",
"vue": "^3.5.8"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@nutui/auto-import-resolver": "^1.0.0",
"@tarojs/cli": "4.0.5",
"@tarojs/taro-loader": "4.0.5",
"@tarojs/webpack5-runner": "4.0.5",
"@types/webpack-env": "^1.18.5",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vue/babel-plugin-jsx": "^1.2.5",
"@vue/compiler-sfc": "^3.5.8",
"babel-preset-taro": "4.0.5",
"css-loader": "3.4.2",
"eslint": "^8.57.1",
"eslint-config-taro": "4.0.5",
"eslint-plugin-vue": "^8.7.1",
"postcss": "^8.4.47",
"sass": "^1.79.3",
"style-loader": "1.3.0",
"stylelint": "^14.16.1",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.6.2",
"unplugin-vue-components": "^0.26.0",
"vue-loader": "^17.4.2",
"webpack": "5.78.0"
}

其他补充信息

pnpm 9.11.0
node 20.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions