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

[vite] Pre-transform error: [sass] @use rules must be written before any other rules. #49

Open
1 task done
yangxfan opened this issue Oct 28, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@yangxfan
Copy link

yangxfan commented Oct 28, 2024

可复现的链接(包含复现链接与示例代码):

问题描述与截图:

升级到 [email protected] 后,项目报错:[sass] @use rules must be written before any other rules.,降回 4.2.26 版本后,正常了,如下图
image

版本:
node: 16.18.0
npm: 8.19.2
pnpm: 8.15.6

期望的结果:

不报错,能正常运行

操作系统:

Mac M1 14.5

浏览器版本:

Chrome 130.0.6723.59

vue 版本:

3.4.20

vxe-pc-ui 版本:

4.2.33

vxe-table 版本:

4.7.59

是否使用当前最新版本?

  • 我已确认是使用当前的最新版本并已按要求提供复现链接与示例代码。
@yangxfan yangxfan added the bug Something isn't working label Oct 28, 2024
@xlz26296
Copy link
Contributor

sass 即将要废弃 @import 应该使用 @use
修改变量具体可以看文档

@yangxfan
Copy link
Author

sass 即将要废弃 @import 应该使用 @use 修改变量具体可以看文档

你说的没有错,多谢告知!
不过我的报错信息是 [email protected] 里的代码报的错,我没办法改源码,现在只是通过降版本避开这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants