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

[Bug Report] Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. #812

Open
qiaolin-pan opened this issue Oct 12, 2024 · 3 comments

Comments

@qiaolin-pan
Copy link

qiaolin-pan commented Oct 12, 2024

问题出在哪个包

@taroify/core, @taroify/icons

问题出在哪个平台/设备/浏览器

H5

平台/设备/浏览器

No response

你正在使用的 Taroify 版本是多少

0.4.1-alpha.0

描述一下您遇到的问题以及重现步骤

终端运行pnpm dev:h5后,提示一堆警告:

WARNING in ./node_modules/.pnpm/@taroify+core@0.4.1-alpha.0_@tarojs+components@4.0.6_@tarojs+helper@4.0.6_@tarojs[email protected].ze3q5jc6iqwygtuycfbcmknu2e/node_modules/@taroify/core/action-sheet/index.scss (./node_modules/.pnpm/[email protected][email protected]@swc[email protected]_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].oneOf[2].use[0]!./node_modules/.pnpm/[email protected][email protected][email protected]_webpack@5.95.0_@swc[email protected]_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[0]!./node_modules/.pnpm/[email protected]/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/[email protected][email protected]_webpack@5.95.0_@swc[email protected]_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!./node_modules/.pnpm/@taroify+core@0.4.1-alpha.0_@tarojs+components@4.0.6_@tarojs+helper@4.0.6_@tarojs[email protected].ze3q5jc6iqwygtuycfbcmknu2e/node_modules/@taroify/core/action-sheet/index.scss)
Module Warning (from ./node_modules/.pnpm/[email protected][email protected][email protected]
@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

image

如果可能的话,请包含一个代码框的链接与复制的问题

No response

你知道如何解决这个问题吗

None

您是否愿意参与修复这个问题,并创建一个 PR

None

修复这个问题的解决方案

No response

@Pilotager
Copy link
Collaborator

这个应该是你安装的 sass 版本问题,Taroify 不做 sass 编译,完全依靠 Taro 框架。

@Niubility-SunLight
Copy link
Contributor

我也遇到了,但是我启用的是less,不知道为什么报这个错

@qiaolin-pan
Copy link
Author

qiaolin-pan commented Oct 14, 2024

这个应该是你安装的 sass 版本问题,Taroify 不做 sass 编译,完全依靠 Taro 框架。

@Pilotager 我的taro框架是最新版本4.0.6,但是我重新安装[email protected]问题依然存在,我的项目里面没有安装sass,但是这个警告确实是提示的taroify+coretaroify+icon,我尝试在本地项目中使用pnpm add [email protected] -D安装旧版本的sass,警告消失

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants